From dcec51dcb6d87abcfb5f1a150ae46375f8945f5b Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 31 Oct 1995 19:18:57 +0000 Subject: (S_proc_getprocinfo): Implement all the rest of the PI flags except PI_ZOMBIE. --- proc/info.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'proc/info.c') 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; -- cgit v1.2.3