diff options
author | Max Romanov <max.romanov@nginx.com> | 2018-08-10 19:27:15 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2018-08-10 19:27:15 +0300 |
commit | ec1af823236a1863169bda14bc5c56ece11c73bb (patch) | |
tree | 04cccbbb492a4a8c81d87c34f6b84c935b40e448 /src/nxt_runtime.c | |
parent | 86740ab34b50190d8d6930565b23e8636518281f (diff) | |
download | unit-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 'src/nxt_runtime.c')
-rw-r--r-- | src/nxt_runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index 4923c965..acc2820a 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -435,7 +435,7 @@ nxt_runtime_quit(nxt_task_t *task, nxt_uint_t status) } if (rt->type == NXT_PROCESS_MAIN) { - nxt_main_stop_worker_processes(task, rt); + nxt_main_stop_all_processes(task, rt); done = 0; } } |