[libgtop] openbsd: only PID 1 is special (init)
- From: Antoine Jacoutot <ajacoutot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] openbsd: only PID 1 is special (init)
- Date: Tue, 12 Jan 2016 16:35:36 +0000 (UTC)
commit de408a6bba216ebcbc47f902e4add54e8ad7008f
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Tue Jan 12 17:14:20 2016 +0100
openbsd: only PID 1 is special (init)
sysdeps/openbsd/procargs.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/sysdeps/openbsd/procargs.c b/sysdeps/openbsd/procargs.c
index a0e04fb..c686bd3 100644
--- a/sysdeps/openbsd/procargs.c
+++ b/sysdeps/openbsd/procargs.c
@@ -56,11 +56,8 @@ glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
memset (buf, 0, sizeof (glibtop_proc_args));
- /*
- * Don't bother with PIDs below 20, because everything below this
- * number is highly likely to be a kernel thread.
- */
- if (pid < 19) return NULL;
+ /* Ignore init */
+ if (pid < 2) return NULL;
glibtop_suid_enter (server);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]