diff options
-rw-r--r-- | src/librc-daemon.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); |