diff options
-rw-r--r-- | src/nxt_runtime.c | 23 | ||||
-rw-r--r-- | src/nxt_runtime.h | 1 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index b4e30863..4de0404c 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -738,7 +738,6 @@ nxt_runtime_conf_init(nxt_task_t *task, nxt_runtime_t *rt) rt->daemon = 1; rt->master_process = 1; rt->engine_connections = 256; - rt->worker_processes = 1; rt->auxiliary_threads = 2; rt->user_cred.user = "nobody"; rt->group = NULL; @@ -795,7 +794,6 @@ static nxt_int_t nxt_runtime_conf_read_cmd(nxt_task_t *task, nxt_runtime_t *rt) { char *p, **argv; - nxt_int_t n; nxt_str_t addr; nxt_sockaddr_t *sa; @@ -842,27 +840,6 @@ nxt_runtime_conf_read_cmd(nxt_task_t *task, nxt_runtime_t *rt) continue; } - if (nxt_strcmp(p, "--workers") == 0) { - if (*argv == NULL) { - nxt_log(task, NXT_LOG_CRIT, - "no argument for option \"--workers\""); - return NXT_ERROR; - } - - p = *argv++; - n = nxt_int_parse((u_char *) p, nxt_strlen(p)); - - if (n < 1) { - nxt_log(task, NXT_LOG_CRIT, - "invalid number of workers: \"%s\"", p); - return NXT_ERROR; - } - - rt->worker_processes = n; - - continue; - } - if (nxt_strcmp(p, "--user") == 0) { if (*argv == NULL) { nxt_log(task, NXT_LOG_CRIT, diff --git a/src/nxt_runtime.h b/src/nxt_runtime.h index 4961bfb8..b45b1ac3 100644 --- a/src/nxt_runtime.h +++ b/src/nxt_runtime.h @@ -57,7 +57,6 @@ struct nxt_runtime_s { uint8_t master_process; const char *engine; uint32_t engine_connections; - uint32_t worker_processes; uint32_t auxiliary_threads; nxt_user_cred_t user_cred; const char *group; |