summaryrefslogtreecommitdiffstats
path: root/libdaemon
diff options
context:
space:
mode:
Diffstat (limited to 'libdaemon')
-rw-r--r--libdaemon/dpid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdaemon/dpid.c b/libdaemon/dpid.c
index 717c7ea..110bfe9 100644
--- a/libdaemon/dpid.c
+++ b/libdaemon/dpid.c
@@ -164,7 +164,7 @@ finish:
int daemon_pid_file_kill(int s) {
pid_t pid;
- if ((pid = daemon_pid_file_is_running()) < 0)
+ if ((pid = daemon_pid_file_is_running()) == (pid_t) -1)
return -1;
if (kill(pid, s) < 0)