summaryrefslogtreecommitdiff
path: root/sysutils/libgtop2/patches/patch-bg
blob: e25c7986c1dbe1436a9ee133b68b11ec1f0d5585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-bg,v 1.1 2005/10/12 21:49:39 jmmv Exp $

From FreeBSD's GNOME development repository.

--- sysdeps/freebsd/prockernel.c	Mon Jul 19 05:33:56 2004
+++ sysdeps/freebsd/prockernel.c.orig	Sat Mar 19 02:39:47 2005
@@ -115,8 +115,10 @@
 
 	/* 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)