From 777dbbe3f7fbab071ebdb964fdf756546ac5441e Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 23 Jun 2006 12:16:22 +0000 Subject: [PATCH] Everyone's endpoint number --- commands/ps/ps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.44.0