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:
Martin Baulig
1999-11-21 18:08:10 +00:00
committed by Martin Baulig
parent 3f8ad111b2
commit f8aae8f544
2 changed files with 11 additions and 0 deletions

View File

@@ -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>
* uptime.c (glibtop_get_uptime_s): Don't cast uptime and idletime

View File

@@ -128,6 +128,13 @@ glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
if ((int) arg != procuid.pgrp)
continue;
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:
/* Do you really, really need this ? */
glibtop_get_proc_uid_s (server, &procuid, pid);