diff options
author | Valentin Bartenev <vbart@nginx.com> | 2017-08-30 03:10:13 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2017-08-30 03:10:13 +0300 |
commit | f528cb393a137b5e9c34adb311d9addb3c5e1d78 (patch) | |
tree | fae9c1949cd76c15d481ea560d1d068b3a42cad2 /src/nxt_worker_process.c | |
parent | e21dbf89e6d5569d1c9a93f41a21bcc240c64cf3 (diff) | |
download | unit-f528cb393a137b5e9c34adb311d9addb3c5e1d78.tar.gz unit-f528cb393a137b5e9c34adb311d9addb3c5e1d78.tar.bz2 |
Controller: waiting for router before start to accept connections.
Previously, reconfiguration might fail right after the daemon start
if the router process wasn't ready yet.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_worker_process.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/nxt_worker_process.c b/src/nxt_worker_process.c index 0d7ae796..6804f8ab 100644 --- a/src/nxt_worker_process.c +++ b/src/nxt_worker_process.c @@ -12,8 +12,6 @@ static void nxt_worker_process_quit(nxt_task_t *task); -static void nxt_worker_process_quit_handler(nxt_task_t *task, - nxt_port_recv_msg_t *msg); static void nxt_worker_process_signal_handler(nxt_task_t *task, void *obj, void *data); static void nxt_worker_process_sigterm_handler(nxt_task_t *task, void *obj, @@ -22,22 +20,6 @@ static void nxt_worker_process_sigquit_handler(nxt_task_t *task, void *obj, void *data); -nxt_port_handler_t nxt_controller_process_port_handlers[] = { - nxt_worker_process_quit_handler, - nxt_port_new_port_handler, - nxt_port_change_log_file_handler, - nxt_port_mmap_handler, - nxt_port_data_handler, - nxt_port_remove_pid_handler, - NULL, /* NXT_PORT_MSG_READY */ - NULL, /* NXT_PORT_MSG_START_WORKER */ - NULL, /* NXT_PORT_MSG_SOCKET */ - NULL, /* NXT_PORT_MSG_MODULES */ - nxt_port_rpc_handler, - nxt_port_rpc_handler, -}; - - nxt_port_handler_t nxt_worker_process_port_handlers[] = { nxt_worker_process_quit_handler, nxt_port_new_port_handler, @@ -169,7 +151,7 @@ nxt_worker_process_signal_handler(nxt_task_t *task, void *obj, void *data) } -static void +void nxt_worker_process_quit_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) { nxt_worker_process_quit(task); |