From: Ben Gras Date: Fri, 23 Jun 2006 12:16:22 +0000 (+0000) Subject: Everyone's endpoint number X-Git-Tag: v3.1.3~294 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/processing.js?a=commitdiff_plain;h=777dbbe3f7fbab071ebdb964fdf756546ac5441e;p=minix.git Everyone's endpoint number --- diff --git a/commands/ps/ps.c b/commands/ps/ps.c index 51cdd2376..11641025f 100644 --- a/commands/ps/ps.c +++ b/commands/ps/ps.c @@ -492,7 +492,8 @@ int endpoints; bufp->ps_pgrp = ps_mproc[p_nr].mp_procgrp; bufp->ps_mflags = ps_mproc[p_nr].mp_flags; } else { - bufp->ps_pid = 0; + if(endpoints) bufp->ps_pid = ps_proc[p_ki].p_endpoint; + else bufp->ps_pid = 0; bufp->ps_ppid = 0; bufp->ps_ruid = bufp->ps_euid = 0; bufp->ps_pgrp = 0;