diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-06-18 17:14:25 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-06-18 17:14:25 +0300 |
commit | 6273819080584460db7a7a65fc69c3f92a84b05b (patch) | |
tree | f5aff12bacfdbac6c9875800c9033422d32063e1 /src/nxt_runtime.c | |
parent | e96374bfa122b035955d686aaf52b68ebe8292a0 (diff) | |
download | unit-6273819080584460db7a7a65fc69c3f92a84b05b.tar.gz unit-6273819080584460db7a7a65fc69c3f92a84b05b.tar.bz2 |
Removed unused single process type.
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r-- | src/nxt_runtime.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index 5907b14e..9ecad82f 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -20,8 +20,6 @@ static nxt_int_t nxt_runtime_event_engines(nxt_task_t *task, nxt_runtime_t *rt); static nxt_int_t nxt_runtime_thread_pools(nxt_thread_t *thr, nxt_runtime_t *rt); static void nxt_runtime_start(nxt_task_t *task, void *obj, void *data); static void nxt_runtime_initial_start(nxt_task_t *task); -static void nxt_single_process_start(nxt_thread_t *thr, nxt_task_t *task, - nxt_runtime_t *rt); static void nxt_runtime_close_idle_connections(nxt_event_engine_t *engine); static void nxt_runtime_exit(nxt_task_t *task, void *obj, void *data); static nxt_int_t nxt_runtime_event_engine_change(nxt_task_t *task, @@ -403,13 +401,7 @@ nxt_runtime_initial_start(nxt_task_t *task) thr->engine->max_connections = rt->engine_connections; - if (rt->main_process) { - if (nxt_main_process_start(thr, task, rt) != NXT_ERROR) { - return; - } - - } else { - nxt_single_process_start(thr, task, rt); + if (nxt_main_process_start(thr, task, rt) != NXT_ERROR) { return; } @@ -419,27 +411,6 @@ fail: } -static void -nxt_single_process_start(nxt_thread_t *thr, nxt_task_t *task, nxt_runtime_t *rt) -{ - nxt_int_t ret; - - ret = nxt_runtime_thread_pool_create(thr, rt, rt->auxiliary_threads, - 60000 * 1000000LL); - - if (nxt_slow_path(ret != NXT_OK)) { - nxt_runtime_quit(task); - return; - } - - rt->types |= (1U << NXT_PROCESS_SINGLE); - - nxt_runtime_listen_sockets_enable(task, rt); - - return; -} - - void nxt_runtime_quit(nxt_task_t *task) { @@ -709,7 +680,6 @@ nxt_runtime_conf_init(nxt_task_t *task, nxt_runtime_t *rt) const nxt_event_interface_t *interface; rt->daemon = 1; - rt->main_process = 1; rt->engine_connections = 256; rt->auxiliary_threads = 2; rt->user_cred.user = NXT_USER; |