1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/devel/libgtop2/files/patch-systeps::freebsd::procmap.c
Alexander Nedotsukov 0b879af755 Downgrade glibtop_error_io() to glibtop_warn_io() on failed kvm_getprocs().
There is realy nothing abnormal if client app trying to query data for
just dissapeared process. glibtop_error_io() call always end up with exit()
which is not what people may expect.
2005-03-18 18:16:38 +00:00

12 lines
414 B
C

--- sysdeps/freebsd/procmap.c Wed Feb 23 17:20:45 2005
+++ sysdeps/freebsd/procmap.c.orig Sat Mar 19 02:46:57 2005
@@ -129,7 +129,7 @@
/* Get the process data */
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_warn_io_r (server, "kvm_getprocs (%d)", pid);
return NULL;
}