From: Vladimír Čunát Date: Thu, 28 Feb 2019 16:52:51 +0000 (+0100) Subject: daemon/main nitpick: unify exit code number handling X-Git-Tag: v4.0.0~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d43d6fab37d146bd8b1ce537e40980e1432b30bd;p=thirdparty%2Fknot-resolver.git daemon/main nitpick: unify exit code number handling --- diff --git a/daemon/main.c b/daemon/main.c index 30abf8368..f670d72ba 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -416,7 +416,7 @@ static int run_worker(uv_loop_t *loop, struct engine *engine, fd_array_t *ipc_se "use '-f 1' if you want non-interactive mode. " "Commands can be simply added to your configuration file or sent over the tty/$PID control socket.\n" ); - return 1; + return EXIT_FAILURE; } if (setvbuf(stdout, NULL, _IONBF, 0) || setvbuf(stderr, NULL, _IONBF, 0)) { @@ -470,7 +470,7 @@ static int run_worker(uv_loop_t *loop, struct engine *engine, fd_array_t *ipc_se unlink(sock_file); } uv_close((uv_handle_t *)&pipe, NULL); /* Seems OK even on the stopped loop. */ - return 0; + return EXIT_SUCCESS; } #ifdef HAS_SYSTEMD