summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_rpc.c
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2020-08-13 19:28:27 +0300
committerAndrei Belov <defan@nginx.com>2020-08-13 19:28:27 +0300
commitaff76e4f90b4e948c327ce2b021dc3203c33cbcd (patch)
tree5bd6ac3aa92683777548472984c209bf26d8a971 /src/nxt_port_rpc.c
parent04ce9f997e0e49e57ce4b5fc4aa98134232a1974 (diff)
parent6473d4b65a99aa10d509220fb99d8c4f65631ed0 (diff)
downloadunit-aff76e4f90b4e948c327ce2b021dc3203c33cbcd.tar.gz
unit-aff76e4f90b4e948c327ce2b021dc3203c33cbcd.tar.bz2
Merged with the default branch.1.19.0-1
Diffstat (limited to '')
-rw-r--r--src/nxt_port_rpc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nxt_port_rpc.c b/src/nxt_port_rpc.c
index 37f2d902..f4008a18 100644
--- a/src/nxt_port_rpc.c
+++ b/src/nxt_port_rpc.c
@@ -389,7 +389,8 @@ nxt_port_rpc_remove_peer(nxt_task_t *task, nxt_port_t *port, nxt_pid_t peer)
nxt_memzero(&msg, sizeof(msg));
nxt_memzero(&buf, sizeof(buf));
- msg.fd = -1;
+ msg.fd[0] = -1;
+ msg.fd[1] = -1;
msg.buf = &buf;
msg.port = port;
@@ -500,7 +501,8 @@ nxt_port_rpc_close(nxt_task_t *task, nxt_port_t *port)
return;
}
- msg.fd = -1;
+ msg.fd[0] = -1;
+ msg.fd[1] = -1;
msg.buf = &nxt_port_close_dummy_buf;
msg.port = port;
msg.port_msg.stream = reg->stream;