It does not work to get information about the swapper task on FreeBSD
1998-11-11 Martin Baulig <martin@home-of-linux.org> * *.c: It does not work to get information about the swapper task on FreeBSD 2.2.6, so we simple return if pid == 0.
This commit is contained in:
committed by
Martin Baulig
parent
fffabe63b7
commit
d46c6227fb
@@ -117,6 +117,9 @@ glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf,
|
||||
if (server->sysdeps.proc_time == 0)
|
||||
return;
|
||||
|
||||
/* It does not work for the swapper task. */
|
||||
if (pid == 0) return;
|
||||
|
||||
sprintf (filename, "/proc/%d/mem", pid);
|
||||
if (stat (filename, &statb)) return;
|
||||
|
||||
|
Reference in New Issue
Block a user