summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4e28329..cba75c7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -254,7 +254,7 @@ int main(int argc, char*argv[]) {
else
daemon_log(LOG_INFO, "Daemon not running.");
- return 1;
+ return pid >= 0 ? 0 : 1;
}
if ((pid = daemon_pid_file_is_running()) >= 0) {