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:
Martin Baulig
1998-11-11 15:58:22 +00:00
committed by Martin Baulig
parent fffabe63b7
commit d46c6227fb
9 changed files with 43 additions and 7 deletions

View File

@@ -53,6 +53,9 @@ 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)) {