diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-08-02 13:20:53 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-08-02 13:20:53 +0300 |
commit | 82c0304ab8f4fb2d406fe709639bee535b45d888 (patch) | |
tree | fcb6ecc27ce6ee620fba9cd3e55cc0e5942d3011 /src/nxt_port.c | |
parent | c93d2c76235ae6823ee59b1072338258897ae2d7 (diff) | |
download | unit-82c0304ab8f4fb2d406fe709639bee535b45d888.tar.gz unit-82c0304ab8f4fb2d406fe709639bee535b45d888.tar.bz2 |
Using port rpc in router->master start worker request.
Diffstat (limited to 'src/nxt_port.c')
-rw-r--r-- | src/nxt_port.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nxt_port.c b/src/nxt_port.c index 27b5ddbe..681fec39 100644 --- a/src/nxt_port.c +++ b/src/nxt_port.c @@ -413,14 +413,20 @@ nxt_port_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) void nxt_port_remove_pid_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) { + nxt_buf_t *buf; nxt_pid_t pid; nxt_runtime_t *rt; nxt_process_t *process; nxt_debug(task, "port remove pid handler"); + buf = msg->buf; + + nxt_assert(nxt_buf_used_size(buf) == sizeof(pid)); + + nxt_memcpy(&pid, buf->mem.pos, sizeof(pid)); + rt = task->thread->runtime; - pid = msg->port_msg.stream; nxt_port_rpc_remove_peer(task, msg->port, pid); |