diff options
author | David Garcia Quintas <dgq@google.com> | 2016-12-12 14:51:31 -0800 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-12-12 14:51:31 -0800 |
commit | e272af07c77af238209fce05af4cc9fee372a948 (patch) | |
tree | 4a714dceb85312ada33785dddb869167c79050ca | |
parent | 4603a1c7a43347fd7139c619112de82c03f7b18a (diff) |
poll_posix double shutdown fix
-rw-r--r-- | src/core/lib/iomgr/ev_poll_posix.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/lib/iomgr/ev_poll_posix.c b/src/core/lib/iomgr/ev_poll_posix.c index 21b28e5554..486181df0d 100644 --- a/src/core/lib/iomgr/ev_poll_posix.c +++ b/src/core/lib/iomgr/ev_poll_posix.c @@ -413,9 +413,7 @@ static void fd_orphan(grpc_exec_ctx *exec_ctx, grpc_fd *fd, const char *reason) { fd->on_done_closure = on_done; fd->released = release_fd != NULL; - if (!fd->released) { - shutdown(fd->fd, SHUT_RDWR); - } else { + if (fd->released) { *release_fd = fd->fd; } gpr_mu_lock(&fd->mu); |