summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-10-31 19:18:57 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-10-31 19:18:57 +0000
commitdcec51dcb6d87abcfb5f1a150ae46375f8945f5b (patch)
tree83d4f7745d2b8b68f9766d8a873e2cc341f01188
parent1ddde85288dedb390ce6c5eba6cab5fa97a5afa3 (diff)
(S_proc_getprocinfo): Implement all the rest of the PI flags except
PI_ZOMBIE.
-rw-r--r--proc/info.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/proc/info.c b/proc/info.c
index 85b398f6..2aab66e4 100644
--- a/proc/info.c
+++ b/proc/info.c
@@ -350,10 +350,15 @@ S_proc_getprocinfo (struct proc *callerp,
pi->state =
((p->p_stopped ? PI_STOPPED : 0)
| (p->p_exec ? PI_EXECED : 0)
+ | (p->p_waiting ? PI_WAITING : 0)
| (!p->p_pgrp->pg_orphcnt ? PI_ORPHAN : 0)
+ | (p->p_msgport == MACH_PORT_NULL ? PI_NOMSG : 0)
| (p->p_pgrp->pg_session->s_sid == p->p_pid ? PI_SESSLD : 0)
+ | (p->p_noonwer ? PI_NOTOWNED : 0)
| (!p->p_parentset ? PI_NOPARENT : 0)
- | (p->p_msgport == MACH_PORT_NULL ? PI_NOMSG : 0));
+ | (p->p_traced ? PI_TRACED : 0)
+ | (p->p_msgportwait ? PI_GETMSG : 0)
+ | (p->p_loginleader ? PI_LODINLD : 0));
pi->owner = p->p_owner;
pi->ppid = p->p_parent->p_pid;
pi->pgrp = p->p_pgrp->pg_pgid;