diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-06-18 17:14:32 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-06-18 17:14:32 +0300 |
commit | 3ad1acca12400f43e14e49add2ce500f38095fb1 (patch) | |
tree | a5672776ac503710caf5a1ab59ba779bb6ee3d60 /src/nxt_main_process.c | |
parent | cb36b076868496790a1386046c912fa5a2a20866 (diff) | |
download | unit-3ad1acca12400f43e14e49add2ce500f38095fb1.tar.gz unit-3ad1acca12400f43e14e49add2ce500f38095fb1.tar.bz2 |
Fixed exit status on start failure.
This and previous commit close #131 issue on GitHub.
Diffstat (limited to 'src/nxt_main_process.c')
-rw-r--r-- | src/nxt_main_process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index 71a871df..27d17779 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -694,7 +694,7 @@ nxt_main_process_sigterm_handler(nxt_task_t *task, void *obj, void *data) nxt_exiting = 1; - nxt_runtime_quit(task); + nxt_runtime_quit(task, 0); } @@ -708,7 +708,7 @@ nxt_main_process_sigquit_handler(nxt_task_t *task, void *obj, void *data) nxt_exiting = 1; - nxt_runtime_quit(task); + nxt_runtime_quit(task, 0); } @@ -918,7 +918,7 @@ nxt_main_cleanup_worker_process(nxt_task_t *task, nxt_pid_t pid) if (nxt_exiting) { if (rt->nprocesses == 2) { - nxt_runtime_quit(task); + nxt_runtime_quit(task, 0); } } else if (init != NULL) { |