diff options
| author | David Xu <davidxu@FreeBSD.org> | 2005-11-09 07:58:16 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2005-11-09 07:58:16 +0000 |
| commit | f4d85223341bbc956dc8f7e4b554891b205db4b0 (patch) | |
| tree | 85e5f8b0ce02fddd84153997caa42d74d750ee86 /sys/kern/kern_sig.c | |
| parent | 161604d863c8e41ec1744ae1ad98ebb9df394792 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_sig.c')
| -rw-r--r-- | sys/kern/kern_sig.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 8efd21d2e0bf..91712a4b40d9 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2894,11 +2894,12 @@ void childproc_exited(struct proc *p) { int reason; + int status = p->p_xstat; /* convert to int */ reason = CLD_EXITED; - if (WCOREDUMP(p->p_xstat)) + if (WCOREDUMP(status)) reason = CLD_DUMPED; - else if (WIFSIGNALED(p->p_xstat)) + else if (WIFSIGNALED(status)) reason = CLD_KILLED; childproc_stopped(p, reason); } |
