aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-01 08:42:27 +0000
committerRoy Marples <roy@marples.name>2007-10-01 08:42:27 +0000
commit52f33e2815c830094c851d7b6620c41470188433 (patch)
treec53f0d1adfa9831fc5703bbd09a21aee48c05f0e /src
parent1a6912d7ebfe23a4e8a47c0c286f8e699f171aef (diff)
Compile on fbsd.
Diffstat (limited to 'src')
-rw-r--r--src/librc-daemon.c6
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);