summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-10-22 17:43:31 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-10-22 17:43:31 +0300
commit57991dc3f2ee1a028605e5dde01cac367e09142c (patch)
tree6c8469c8c226640aa1a852b88a1a6e2fd33a5283 /src
parent50dd54877dc88ade87f4259a74918ddfa4498880 (diff)
downloadunit-57991dc3f2ee1a028605e5dde01cac367e09142c.tar.gz
unit-57991dc3f2ee1a028605e5dde01cac367e09142c.tar.bz2
Fixed termination signal handlers in worker processes.
This closes #99 issue on GitHub. Thanks to Julian Brost.
Diffstat (limited to 'src')
-rw-r--r--src/nxt_worker_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_worker_process.c b/src/nxt_worker_process.c
index 8bcfb467..c068cca4 100644
--- a/src/nxt_worker_process.c
+++ b/src/nxt_worker_process.c
@@ -42,8 +42,8 @@ nxt_port_handlers_t nxt_discovery_process_port_handlers = {
const nxt_sig_event_t nxt_worker_process_signals[] = {
nxt_event_signal(SIGHUP, nxt_worker_process_signal_handler),
nxt_event_signal(SIGINT, nxt_worker_process_sigterm_handler),
- nxt_event_signal(SIGQUIT, nxt_worker_process_sigterm_handler),
- nxt_event_signal(SIGTERM, nxt_worker_process_sigquit_handler),
+ nxt_event_signal(SIGQUIT, nxt_worker_process_sigquit_handler),
+ nxt_event_signal(SIGTERM, nxt_worker_process_sigterm_handler),
nxt_event_signal(SIGCHLD, nxt_worker_process_signal_handler),
nxt_event_signal(SIGUSR1, nxt_worker_process_signal_handler),
nxt_event_signal(SIGUSR2, nxt_worker_process_signal_handler),