diff options
-rw-r--r-- | proc/info.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/proc/info.c b/proc/info.c index 1390b0a2..c64dd6d7 100644 --- a/proc/info.c +++ b/proc/info.c @@ -420,6 +420,13 @@ S_proc_getprocinfo (struct proc *callerp, for (tp = p; !tp->p_loginleader; tp = tp->p_parent) assert (tp); pi->logincollection = tp->p_pid; + if (p->p_dead || p->p_stopped) + { + pi->exitstatus = p->p_status; + pi->sigcode = p->p_sigcode; + } + else + pi->exitstatus = pi->sigcode = 0; pi->nthreads = nthreads; |