Deleted
Added
nxt_runtime.c (704:1fcac04f0a15) | nxt_runtime.c (754:c8e0f350f0d4) |
---|---|
1 2/* 3 * Copyright (C) Igor Sysoev 4 * Copyright (C) Valentin V. Bartenev 5 * Copyright (C) NGINX, Inc. 6 */ 7 8#include <nxt_main.h> --- 421 unchanged lines hidden (view full) --- 430 engine->shutdown = 1; 431 432 if (!nxt_array_is_empty(rt->thread_pools)) { 433 nxt_runtime_thread_pool_destroy(task, rt, nxt_runtime_quit); 434 done = 0; 435 } 436 437 if (rt->type == NXT_PROCESS_MAIN) { | 1 2/* 3 * Copyright (C) Igor Sysoev 4 * Copyright (C) Valentin V. Bartenev 5 * Copyright (C) NGINX, Inc. 6 */ 7 8#include <nxt_main.h> --- 421 unchanged lines hidden (view full) --- 430 engine->shutdown = 1; 431 432 if (!nxt_array_is_empty(rt->thread_pools)) { 433 nxt_runtime_thread_pool_destroy(task, rt, nxt_runtime_quit); 434 done = 0; 435 } 436 437 if (rt->type == NXT_PROCESS_MAIN) { |
438 nxt_main_stop_worker_processes(task, rt); | 438 nxt_main_stop_all_processes(task, rt); |
439 done = 0; 440 } 441 } 442 443 nxt_runtime_close_idle_connections(engine); 444 445 if (done) { 446 nxt_work_queue_add(&engine->fast_work_queue, nxt_runtime_exit, --- 1144 unchanged lines hidden --- | 439 done = 0; 440 } 441 } 442 443 nxt_runtime_close_idle_connections(engine); 444 445 if (done) { 446 nxt_work_queue_add(&engine->fast_work_queue, nxt_runtime_exit, --- 1144 unchanged lines hidden --- |