summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-24 17:29:53 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-24 17:29:53 +0300
commit259b90b9d707fddfd0e70672a48bd228a628b599 (patch)
tree2fbf1c85868f7fb2db6a24221fff1927994ea099 /src
parent6ef9fb7d97394cd9b418072958a165262507170e (diff)
downloadunit-259b90b9d707fddfd0e70672a48bd228a628b599.tar.gz
unit-259b90b9d707fddfd0e70672a48bd228a628b599.tar.bz2
Removed command line option --workers.
Diffstat (limited to '')
-rw-r--r--src/nxt_runtime.c23
-rw-r--r--src/nxt_runtime.h1
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;