From ec1af823236a1863169bda14bc5c56ece11c73bb Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Fri, 10 Aug 2018 19:27:15 +0300 Subject: 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. --- src/nxt_runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nxt_runtime.c') 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; } } -- cgit