OpenBSD: kinfo_proc2 -> kinfo_proc
The kinfo_proc2 interface has been removed from OpenBSD (it was deprecated anyway), so use the correct replacement: kinfo_proc. https://bugzilla.gnome.org/show_bug.cgi?id=667591
This commit is contained in:
@@ -49,7 +49,7 @@ glibtop_get_proc_signal_p (glibtop *server,
|
||||
glibtop_proc_signal *buf,
|
||||
pid_t pid)
|
||||
{
|
||||
struct kinfo_proc2 *pinfo;
|
||||
struct kinfo_proc *pinfo;
|
||||
int count = 0;
|
||||
|
||||
glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_SIGNAL), 0);
|
||||
@@ -60,7 +60,7 @@ glibtop_get_proc_signal_p (glibtop *server,
|
||||
if (pid == 0) return;
|
||||
|
||||
/* Get the process information */
|
||||
pinfo = kvm_getproc2 (server->machine.kd, KERN_PROC_PID, pid,
|
||||
pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid,
|
||||
sizeof (*pinfo), &count);
|
||||
if ((pinfo == NULL) || (count != 1)) {
|
||||
glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
|
||||
|
Reference in New Issue
Block a user