Skip to content

Commit

Permalink
exec/2: correct typo: STOPSIG is not TERMSIG
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicToast committed May 31, 2024
1 parent 1e6a2b8 commit e7b7863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@ static jv f_exec(jq_state *jq, jv input, jv path, jv args) {
} else {
// POSIX guarantees that this is WIFSIGNALED(ret)
obj = jv_object_set(obj, jv_string("status"), jv_number(-1));
obj = jv_object_set(obj, jv_string("signal"), jv_number(WSTOPSIG(ret)));
obj = jv_object_set(obj, jv_string("signal"), jv_number(WTERMSIG(ret)));
}
obj = jv_object_set(obj, jv_string("out"), sout);
obj = jv_object_set(obj, jv_string("err"), serr);
Expand Down

0 comments on commit e7b7863

Please sign in to comment.