diff options
author | 2009-02-22 02:46:56 +1000 | |
---|---|---|
committer | 2009-02-22 02:46:56 +1000 | |
commit | f5be301a2f3eb568fcb712c110aa116452573c73 (patch) | |
tree | b68675110aa5acb9482bc7d9bfe181039f50de18 /exec.c | |
parent | b1357d11b2be479905db0d204df27074ccfcf512 (diff) |
Handle exit status of processes terminated by signals
darcs-hash:20090221164656-ac50b-7bcbf6cb0bb8384560fbf9bf1059480cb4089def.gz
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1556,7 +1556,8 @@ void exec( job_t *j ) { debug( 3, L"Set status of %ls to %d using short circut", j->command, p->status ); - proc_set_last_status( job_get_flag( j, JOB_NEGATE )?(!p->status):p->status ); + int status = proc_format_status(p->status); + proc_set_last_status( job_get_flag( j, JOB_NEGATE )?(!status):status ); } break; } |