summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_worker_process.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-07 16:01:34 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-07 16:01:34 +0300
commit74cda90e31f97ba0ebd6483f2b073c1240b93a58 (patch)
tree69727640f476822e3cc1e40ac09bf645251617be /src/nxt_worker_process.c
parent61008a7c0b45fe55f3f611c61f81e569e6baee30 (diff)
downloadunit-74cda90e31f97ba0ebd6483f2b073c1240b93a58.tar.gz
unit-74cda90e31f97ba0ebd6483f2b073c1240b93a58.tar.bz2
Process stop notification from master to all other processes.
New port message type introduced NXT_PORT_MSG_REMOVE_PID. Default handler removes process description from nxt_runtime_t with all ports, incoming and outgoing mmaps etc.
Diffstat (limited to '')
-rw-r--r--src/nxt_worker_process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_worker_process.c b/src/nxt_worker_process.c
index b0c68160..cdc1b1c5 100644
--- a/src/nxt_worker_process.c
+++ b/src/nxt_worker_process.c
@@ -28,6 +28,7 @@ nxt_port_handler_t nxt_worker_process_port_handlers[] = {
nxt_port_change_log_file_handler,
nxt_port_mmap_handler,
nxt_port_data_handler,
+ nxt_port_remove_pid_handler,
};
@@ -37,6 +38,7 @@ nxt_port_handler_t nxt_app_process_port_handlers[] = {
nxt_port_change_log_file_handler,
nxt_port_mmap_handler,
nxt_port_app_data_handler,
+ nxt_port_remove_pid_handler,
};
@@ -46,6 +48,7 @@ nxt_port_handler_t nxt_router_process_port_handlers[] = {
nxt_port_change_log_file_handler,
nxt_port_mmap_handler,
nxt_router_conf_data_handler,
+ nxt_port_remove_pid_handler,
};