summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-06-18 17:14:32 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-06-18 17:14:32 +0300
commit3ad1acca12400f43e14e49add2ce500f38095fb1 (patch)
treea5672776ac503710caf5a1ab59ba779bb6ee3d60 /src/nxt_main_process.c
parentcb36b076868496790a1386046c912fa5a2a20866 (diff)
downloadunit-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 '')
-rw-r--r--src/nxt_main_process.c6
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) {