summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-10-28 00:01:46 +0300
committerMax Romanov <max.romanov@nginx.com>2020-10-28 00:01:46 +0300
commit80a8cb835bb780cdb3047b232809c5dfd6e0e794 (patch)
tree36398fd70b59279d7fe3fdb6a61bf86594c3e1ab /src/nxt_application.c
parentd8cc830ea0363009e40d6bf380db1147ad6fb41e (diff)
downloadunit-80a8cb835bb780cdb3047b232809c5dfd6e0e794.tar.gz
unit-80a8cb835bb780cdb3047b232809c5dfd6e0e794.tar.bz2
Preserving the app port write socket.
The socket is required for intercontextual communication in multithreaded apps.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r--src/nxt_application.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c
index 6935346c..3d08643c 100644
--- a/src/nxt_application.c
+++ b/src/nxt_application.c
@@ -723,7 +723,7 @@ nxt_unit_default_init(nxt_task_t *task, nxt_unit_init_t *init)
init->read_port.id.pid = my_port->pid;
init->read_port.id.id = my_port->id;
init->read_port.in_fd = my_port->pair[0];
- init->read_port.out_fd = -1;
+ init->read_port.out_fd = my_port->pair[1];
init->log_fd = 2;