Various FreeBSD and kFreeBSD updates. Patch by Roy Marples
2007-01-31 Benoît Dejean <benoit@placenet.org> * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write): * netload.c: (glibtop_get_netload_p): * prockernel.c: (glibtop_get_proc_kernel_p): * procmap.c: (glibtop_get_proc_map_p): * proctime.c: * siglist.c: * /libgtop-sysdeps.m4: Various FreeBSD and kFreeBSD updates. Patch by Roy Marples <uberlord@gentoo.org>. Reviewed by Petr Salinger <Petr.Salinger@seznam.cz>. Closes #387200. svn path=/trunk/; revision=2550
This commit is contained in:
committed by
Benoît Dejean
parent
3d06443c2c
commit
c6a7459bc9
@@ -116,8 +116,10 @@ glibtop_get_proc_kernel_p (glibtop *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);
|
||||
if ((pinfo == NULL) || (count != 1)) {
|
||||
glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
|
||||
return;
|
||||
}
|
||||
|
||||
#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
|
||||
|
||||
|
Reference in New Issue
Block a user