summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_external.c
diff options
context:
space:
mode:
authorTiago Natel de Moura <t.nateldemoura@f5.com>2021-11-09 15:48:44 +0300
committerTiago Natel de Moura <t.nateldemoura@f5.com>2021-11-09 15:48:44 +0300
commite207415a78ae67b937faf7e5bcd6e5192993180a (patch)
tree8f26521322b194af7c22134ebd8fdc393e649718 /src/nxt_external.c
parent1de660b6df93c09719361e364211c7c6388c01ce (diff)
downloadunit-e207415a78ae67b937faf7e5bcd6e5192993180a.tar.gz
unit-e207415a78ae67b937faf7e5bcd6e5192993180a.tar.bz2
Introducing application prototype processes.
Diffstat (limited to '')
-rw-r--r--src/nxt_external.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_external.c b/src/nxt_external.c
index 1275aa87..b41ca51b 100644
--- a/src/nxt_external.c
+++ b/src/nxt_external.c
@@ -67,7 +67,7 @@ nxt_external_start(nxt_task_t *task, nxt_process_data_t *data)
nxt_str_t str;
nxt_int_t rc;
nxt_uint_t i, argc;
- nxt_port_t *my_port, *main_port, *router_port;
+ nxt_port_t *my_port, *proto_port, *router_port;
nxt_runtime_t *rt;
nxt_conf_value_t *value;
nxt_common_app_conf_t *conf;
@@ -76,17 +76,17 @@ nxt_external_start(nxt_task_t *task, nxt_process_data_t *data)
rt = task->thread->runtime;
conf = data->app;
- main_port = rt->port_by_type[NXT_PROCESS_MAIN];
+ proto_port = rt->port_by_type[NXT_PROCESS_PROTOTYPE];
router_port = rt->port_by_type[NXT_PROCESS_ROUTER];
my_port = nxt_runtime_port_find(rt, nxt_pid, 0);
- if (nxt_slow_path(main_port == NULL || my_port == NULL
+ if (nxt_slow_path(proto_port == NULL || my_port == NULL
|| router_port == NULL))
{
return NXT_ERROR;
}
- rc = nxt_external_fd_no_cloexec(task, main_port->pair[1]);
+ rc = nxt_external_fd_no_cloexec(task, proto_port->pair[1]);
if (nxt_slow_path(rc != NXT_OK)) {
return NXT_ERROR;
}
@@ -115,7 +115,7 @@ nxt_external_start(nxt_task_t *task, nxt_process_data_t *data)
"%PI,%ud,%d,%d;"
"%d,%z,%uD,%Z",
NXT_VERSION, my_port->process->stream,
- main_port->pid, main_port->id, main_port->pair[1],
+ proto_port->pid, proto_port->id, proto_port->pair[1],
router_port->pid, router_port->id, router_port->pair[1],
my_port->pid, my_port->id, my_port->pair[0],
my_port->pair[1],