aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/tcp_server_posix.c
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <y-zeng@users.noreply.github.com>2017-07-24 11:32:22 -0700
committerGravatar GitHub <noreply@github.com>2017-07-24 11:32:22 -0700
commit9511aefaa9779762daef3040a04627c435f9c392 (patch)
treed3876d4c497254409c9ede1aef4e3a8ba4912c5f /src/core/lib/iomgr/tcp_server_posix.c
parenta2f0e197256ab586394d843f19ff49d36df8f723 (diff)
parent9968c253cda0b039c7bae6afb9ac29d74b63bc9b (diff)
Merge pull request #11786 from y-zeng/fd_orphan
Support closed fd in grpc_fd_orphan()
Diffstat (limited to 'src/core/lib/iomgr/tcp_server_posix.c')
-rw-r--r--src/core/lib/iomgr/tcp_server_posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_server_posix.c b/src/core/lib/iomgr/tcp_server_posix.c
index f304642951..0fc5c0fd86 100644
--- a/src/core/lib/iomgr/tcp_server_posix.c
+++ b/src/core/lib/iomgr/tcp_server_posix.c
@@ -166,7 +166,7 @@ static void deactivated_all_ports(grpc_exec_ctx *exec_ctx, grpc_tcp_server *s) {
GRPC_CLOSURE_INIT(&sp->destroyed_closure, destroyed_port, s,
grpc_schedule_on_exec_ctx);
grpc_fd_orphan(exec_ctx, sp->emfd, &sp->destroyed_closure, NULL,
- "tcp_listener_shutdown");
+ false /* already_closed */, "tcp_listener_shutdown");
}
gpr_mu_unlock(&s->mu);
} else {