summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-08-10 19:27:15 +0300
committerMax Romanov <max.romanov@nginx.com>2018-08-10 19:27:15 +0300
commitec1af823236a1863169bda14bc5c56ece11c73bb (patch)
tree04cccbbb492a4a8c81d87c34f6b84c935b40e448 /src/nxt_main_process.h
parent86740ab34b50190d8d6930565b23e8636518281f (diff)
downloadunit-ec1af823236a1863169bda14bc5c56ece11c73bb.tar.gz
unit-ec1af823236a1863169bda14bc5c56ece11c73bb.tar.bz2
Stopping all application processes if router process dies.
Unit master process restarts the router if the router accidentally dies. New router process receives the configuration from controller and starts configured applications. The information of running applications cannot be transferred to router because currently there is no persistent application identifier. To avoid orphan application processes started by died router, master process stops all currently running applications once it receives SIGCHLD for router process.
Diffstat (limited to '')
-rw-r--r--src/nxt_main_process.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_main_process.h b/src/nxt_main_process.h
index 54861a60..9d74787e 100644
--- a/src/nxt_main_process.h
+++ b/src/nxt_main_process.h
@@ -21,7 +21,7 @@ typedef enum {
nxt_int_t nxt_main_process_start(nxt_thread_t *thr, nxt_task_t *task,
nxt_runtime_t *runtime);
-void nxt_main_stop_worker_processes(nxt_task_t *task, nxt_runtime_t *runtime);
+void nxt_main_stop_all_processes(nxt_task_t *task, nxt_runtime_t *runtime);
nxt_int_t nxt_controller_start(nxt_task_t *task, void *data);
nxt_int_t nxt_router_start(nxt_task_t *task, void *data);