diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-06-23 19:19:41 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-06-23 19:19:41 +0300 |
commit | e5fe254e1e741f24d53f5199cc4f187efd6a9924 (patch) | |
tree | 181f9da2aa94db48c665868fa3291b2fa1de2b03 /src/nxt_process.c | |
parent | 89ab9a9d054f6bca745cbd91cffa9572672a7110 (diff) | |
download | unit-e5fe254e1e741f24d53f5199cc4f187efd6a9924.tar.gz unit-e5fe254e1e741f24d53f5199cc4f187efd6a9924.tar.bz2 |
nxt_port_create() use task instead of thread.
Write socket close() call moved out from nxt_port_create().
Diffstat (limited to 'src/nxt_process.c')
-rw-r--r-- | src/nxt_process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_process.c b/src/nxt_process.c index ac294dba..b8414b93 100644 --- a/src/nxt_process.c +++ b/src/nxt_process.c @@ -100,7 +100,8 @@ nxt_process_start(nxt_task_t *task, nxt_process_init_t *process) nxt_port_write_enable(task, process->master_port); /* A worker process port. */ - nxt_port_create(thread, process->port, process->port_handlers); + nxt_port_write_close(process->port); + nxt_port_create(task, process->port, process->port_handlers); ret = nxt_runtime_thread_pool_create(thread, rt, rt->auxiliary_threads, 60000 * 1000000LL); |