From 52f33e2815c830094c851d7b6620c41470188433 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 1 Oct 2007 08:42:27 +0000 Subject: Compile on fbsd. --- src/librc-daemon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/librc-daemon.c') diff --git a/src/librc-daemon.c b/src/librc-daemon.c index d9b68b08..7003591f 100644 --- a/src/librc-daemon.c +++ b/src/librc-daemon.c @@ -181,8 +181,10 @@ pid_t *rc_find_pids (const char *exec, const char *cmd, pid_t *tmp; int npids = 0; - if ((kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf)) == NULL) - eerrorx ("kvm_open: %s", errbuf); + if ((kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf)) == NULL) { + fprintf (stderr, "kvm_open: %s", errbuf); + return (NULL); + } #if defined(__DragonFly__) || defined( __FreeBSD__) kp = kvm_getprocs (kd, KERN_PROC_PROC, 0, &processes); -- cgit v1.2.3