aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-17 11:05:24 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-17 11:05:24 +0200
commit90b2dc8d77351204fcdc20bf472cd4ad68cbbd35 (patch)
treeaa3b10ae19b2bfc2b892835cd1e248125158a08f /src
parent137a18719ce8006697bb104c9ea94115557b7966 (diff)
Return 1 is automedia is already running
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c9a9bb3..3c6c5c4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -535,7 +535,7 @@ static void command_sync(int argc, char **argv, char *rss_config_dir, char *html
&& cmdline_contains_str(cmdline, cmdline_size, "sync") == 0) {
fprintf(stderr, "Automedia is already running with sync\n");
free(running_automedia_pid);
- exit(0);
+ exit(1);
}
free(running_automedia_pid);
} else {