openbsd: only PID 1 is special (init)
This commit is contained in:
@@ -56,11 +56,8 @@ glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
|
|||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_proc_args));
|
memset (buf, 0, sizeof (glibtop_proc_args));
|
||||||
|
|
||||||
/*
|
/* Ignore init */
|
||||||
* Don't bother with PIDs below 20, because everything below this
|
if (pid < 2) return NULL;
|
||||||
* number is highly likely to be a kernel thread.
|
|
||||||
*/
|
|
||||||
if (pid < 19) return NULL;
|
|
||||||
|
|
||||||
glibtop_suid_enter (server);
|
glibtop_suid_enter (server);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user