From 9d487df10df5000a84c9c1a75fff0cff525d4454 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 29 Aug 2017 02:59:35 +0300 Subject: The master process has been renamed to the main process. --- src/nxt_runtime.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/nxt_runtime.c') diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index 93dad6b6..66647225 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include @@ -284,7 +284,7 @@ nxt_runtime_event_engines(nxt_task_t *task, nxt_runtime_t *rt) } engine = nxt_event_engine_create(task, interface, - nxt_master_process_signals, 0, 0); + nxt_main_process_signals, 0, 0); if (nxt_slow_path(engine == NULL)) { return NXT_ERROR; @@ -408,8 +408,8 @@ nxt_runtime_initial_start(nxt_task_t *task) thr->engine->max_connections = rt->engine_connections; - if (rt->master_process) { - if (nxt_master_process_start(thr, task, rt) != NXT_ERROR) { + if (rt->main_process) { + if (nxt_main_process_start(thr, task, rt) != NXT_ERROR) { return; } @@ -467,8 +467,8 @@ nxt_runtime_quit(nxt_task_t *task) done = 0; } - if (nxt_runtime_is_master(rt)) { - nxt_master_stop_worker_processes(task, rt); + if (nxt_runtime_is_main(rt)) { + nxt_main_stop_worker_processes(task, rt); done = 0; } } @@ -524,7 +524,7 @@ nxt_runtime_exit(nxt_task_t *task, void *obj, void *data) return; } - if (nxt_runtime_is_master(rt)) { + if (nxt_runtime_is_main(rt)) { if (rt->pid_file != NULL) { nxt_file_delete(rt->pid_file); } @@ -712,7 +712,7 @@ nxt_runtime_conf_init(nxt_task_t *task, nxt_runtime_t *rt) const nxt_event_interface_t *interface; rt->daemon = 1; - rt->master_process = 1; + rt->main_process = 1; rt->engine_connections = 256; rt->auxiliary_threads = 2; rt->user_cred.user = NXT_USER; -- cgit