summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-10-04 15:01:15 +0300
committerMax Romanov <max.romanov@nginx.com>2017-10-04 15:01:15 +0300
commit85e485776b9c52e1762e6cc53406e956c604d9de (patch)
tree96212e3790e6d331ca4e91cfb02405068546038e /src/nxt_controller.c
parent730f5a9dd9b3674246d06d18e05c8899e018ef5f (diff)
downloadunit-85e485776b9c52e1762e6cc53406e956c604d9de.tar.gz
unit-85e485776b9c52e1762e6cc53406e956c604d9de.tar.bz2
Using port 'post' facility to proxy remove pid message to workers.
Remove pid proxying to worker engines implementation was originally overcomplicated. Memory pool and 2 engine posts (there and back again) are optimized out and replaced with band new nxt_port_post() call.
Diffstat (limited to 'src/nxt_controller.c')
-rw-r--r--src/nxt_controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index 4a0d065b..d4d8023e 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -189,7 +189,7 @@ nxt_controller_process_new_port_handler(nxt_task_t *task,
nxt_port_new_port_handler(task, msg);
- if (msg->new_port->type != NXT_PROCESS_ROUTER) {
+ if (msg->u.new_port->type != NXT_PROCESS_ROUTER) {
return;
}