summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_master_process.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-08-02 13:36:29 +0300
committerMax Romanov <max.romanov@nginx.com>2017-08-02 13:36:29 +0300
commitb150f07e801802124ca6f3b29b4b9f97aa68d52b (patch)
tree6dbf83af6b7e2787e0c918b0017765d074c70057 /src/nxt_master_process.c
parentf23f985899760fafd853e993d9023b1339f09533 (diff)
downloadunit-b150f07e801802124ca6f3b29b4b9f97aa68d52b.tar.gz
unit-b150f07e801802124ca6f3b29b4b9f97aa68d52b.tar.bz2
Added basic port error handler.
Diffstat (limited to 'src/nxt_master_process.c')
-rw-r--r--src/nxt_master_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_master_process.c b/src/nxt_master_process.c
index 41e659a4..313456ac 100644
--- a/src/nxt_master_process.c
+++ b/src/nxt_master_process.c
@@ -223,7 +223,7 @@ nxt_master_process_port_create(nxt_task_t *task, nxt_runtime_t *rt)
return NXT_ERROR;
}
- port = nxt_port_new(0, nxt_pid, NXT_PROCESS_MASTER);
+ port = nxt_port_new(task, 0, nxt_pid, NXT_PROCESS_MASTER);
if (nxt_slow_path(port == NULL)) {
return NXT_ERROR;
}
@@ -404,7 +404,7 @@ nxt_master_create_worker_process(nxt_task_t *task, nxt_runtime_t *rt,
process->init = init;
- port = nxt_port_new(0, 0, init->type);
+ port = nxt_port_new(task, 0, 0, init->type);
if (nxt_slow_path(port == NULL)) {
nxt_runtime_process_remove(rt, process);
return NXT_ERROR;