]> Zhao Yanbai Git Server - minix.git/commitdiff
Everyone's endpoint number
authorBen Gras <ben@minix3.org>
Fri, 23 Jun 2006 12:16:22 +0000 (12:16 +0000)
committerBen Gras <ben@minix3.org>
Fri, 23 Jun 2006 12:16:22 +0000 (12:16 +0000)
commands/ps/ps.c

index 51cdd2376d5263c99ed069cf1ef0e5bed506de55..11641025ff288aac19d9ee342646c9ea3f599d05 100644 (file)
@@ -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;