diff options
author | Dan Born <dborn@google.com> | 2016-06-28 16:34:41 -0700 |
---|---|---|
committer | Dan Born <dborn@google.com> | 2016-07-08 12:30:12 -0700 |
commit | 6c54078d2ee377a1c12ded8e031353ee5125ac2f (patch) | |
tree | fb3f8068a36f54ab8f3cda3f36074fd9a39dd7cc /src/core/lib/iomgr | |
parent | 48bbc554bbb0ccb83044516d1dd16175a4ee556a (diff) |
Set siblings for server clones properly.
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r-- | src/core/lib/iomgr/tcp_server_posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_server_posix.c b/src/core/lib/iomgr/tcp_server_posix.c index a1a463550a..5d2ebe2e7c 100644 --- a/src/core/lib/iomgr/tcp_server_posix.c +++ b/src/core/lib/iomgr/tcp_server_posix.c @@ -512,8 +512,9 @@ static grpc_error *clone_port(grpc_tcp_listener *listener, unsigned count) { sp->port = port; sp->port_index = listener->port_index; sp->fd_index = listener->fd_index + count - i; + listener->sibling = sp; sp->is_sibling = 1; - sp->sibling = listener->is_sibling ? listener->sibling : listener; + sp->sibling = listener->sibling; GPR_ASSERT(sp->emfd); while (listener->server->tail->next != NULL) { listener->server->tail = listener->server->tail->next; |