Support GLIBTOP_KERN_PROC_PPID.
1999-11-21 Martin Baulig <martin@home-of-linux.org> * proclist.c: (glibtop_get_proclist_s): Support GLIBTOP_KERN_PROC_PPID.
This commit is contained in:
committed by
Martin Baulig
parent
3f8ad111b2
commit
f8aae8f544
@@ -1,3 +1,7 @@
|
|||||||
|
1999-11-21 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
|
* proclist.c: (glibtop_get_proclist_s): Support GLIBTOP_KERN_PROC_PPID.
|
||||||
|
|
||||||
1999-10-19 Martin Baulig <martin@home-of-linux.org>
|
1999-10-19 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
* uptime.c (glibtop_get_uptime_s): Don't cast uptime and idletime
|
* uptime.c (glibtop_get_uptime_s): Don't cast uptime and idletime
|
||||||
|
@@ -128,6 +128,13 @@ glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
|
|||||||
if ((int) arg != procuid.pgrp)
|
if ((int) arg != procuid.pgrp)
|
||||||
continue;
|
continue;
|
||||||
break;
|
break;
|
||||||
|
case GLIBTOP_KERN_PROC_PPID:
|
||||||
|
/* Do you really, really need this ? */
|
||||||
|
glibtop_get_proc_uid_s (server, &procuid, pid);
|
||||||
|
if (procuid.flags & (1L << GLIBTOP_PROC_UID_PPID))
|
||||||
|
if ((int) arg != procuid.ppid)
|
||||||
|
continue;
|
||||||
|
break;
|
||||||
case GLIBTOP_KERN_PROC_SESSION:
|
case GLIBTOP_KERN_PROC_SESSION:
|
||||||
/* Do you really, really need this ? */
|
/* Do you really, really need this ? */
|
||||||
glibtop_get_proc_uid_s (server, &procuid, pid);
|
glibtop_get_proc_uid_s (server, &procuid, pid);
|
||||||
|
Reference in New Issue
Block a user