diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:16 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:16 +0300 |
commit | 803855138c3b714c088e42a32e80939a81785944 (patch) | |
tree | f19efadd82ecfb2aa42f93a1fa67c451ca690724 /src/nxt_master_process.c | |
parent | eb675f2d78178b2cdd54d934022f9b739bfa8952 (diff) | |
download | unit-803855138c3b714c088e42a32e80939a81785944.tar.gz unit-803855138c3b714c088e42a32e80939a81785944.tar.bz2 |
Mem pool cleanup introduced.
Used for connection mem pool cleanup, which can be used by buffers.
Used for port mem pool to safely destroy linked process.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_master_process.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nxt_master_process.c b/src/nxt_master_process.c index 1a8b5ed8..3cb62830 100644 --- a/src/nxt_master_process.c +++ b/src/nxt_master_process.c @@ -212,13 +212,13 @@ nxt_master_process_port_create(nxt_task_t *task, nxt_runtime_t *rt) return NXT_ERROR; } - nxt_process_port_add(process, port); - ret = nxt_port_socket_init(task, port, 0); if (nxt_slow_path(ret != NXT_OK)) { return ret; } + nxt_process_port_add(task, process, port); + nxt_runtime_port_add(rt, port); /* @@ -380,12 +380,11 @@ nxt_master_create_worker_process(nxt_task_t *task, nxt_runtime_t *rt, return NXT_ERROR; } - nxt_process_port_add(process, port); + nxt_process_port_add(task, process, port); ret = nxt_port_socket_init(task, port, 0); if (nxt_slow_path(ret != NXT_OK)) { nxt_mp_release(port->mem_pool, port); - nxt_runtime_process_destroy(rt, process); return ret; } |