[libgtop] No special case for pid == 0. As of 2015, with FreeBSD 10.1-RELEASE #0 r274401 on amd64, this really
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] No special case for pid == 0. As of 2015, with FreeBSD 10.1-RELEASE #0 r274401 on amd64, this really
- Date: Thu, 25 Jun 2015 23:58:21 +0000 (UTC)
commit b2fee3e111aa205888d9a4417371fa9cd8e2ab83
Author: Benoit Dejean <bdejean gmail com>
Date: Sat Feb 28 01:43:57 2015 +0100
No special case for pid == 0. As of 2015, with FreeBSD 10.1-RELEASE #0 r274401 on amd64, this really
works and sets the name to "kernel" for pid == 0.
sysdeps/freebsd/procstate.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/sysdeps/freebsd/procstate.c b/sysdeps/freebsd/procstate.c
index b13c93f..d9e3e71 100644
--- a/sysdeps/freebsd/procstate.c
+++ b/sysdeps/freebsd/procstate.c
@@ -54,9 +54,6 @@ glibtop_get_proc_state_p (glibtop *server,
memset (buf, 0, sizeof (glibtop_proc_state));
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
/* Get the process information */
pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
if ((pinfo == NULL) || (count != 1)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]