aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2009-02-22 02:46:56 +1000
committerGravatar axel <axel@liljencrantz.se>2009-02-22 02:46:56 +1000
commitf5be301a2f3eb568fcb712c110aa116452573c73 (patch)
treeb68675110aa5acb9482bc7d9bfe181039f50de18 /exec.c
parentb1357d11b2be479905db0d204df27074ccfcf512 (diff)
Handle exit status of processes terminated by signals
darcs-hash:20090221164656-ac50b-7bcbf6cb0bb8384560fbf9bf1059480cb4089def.gz
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 5534f7cb..a6b98992 100644
--- a/exec.c
+++ b/exec.c
@@ -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;
}