Some more work here.

This commit is contained in:
Martin Baulig
1998-08-10 08:09:37 +00:00
parent 260440e6ee
commit 2e4ec2a85c
8 changed files with 102 additions and 88 deletions

View File

@@ -51,11 +51,15 @@ glibtop_get_proc_signal_p (glibtop *server,
memset (buf, 0, sizeof (glibtop_proc_signal));
glibtop_suid_enter (server);
/* Get the process information */
pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
if ((pinfo == NULL) || (count != 1))
glibtop_error_io_r (server, "kvm_getprocs (%d)", pid);
glibtop_suid_leave (server);
/* signal: mask of pending signals.
* pinfo [0].kp_proc.p_siglist
*/