diff options
author | Sree Kuchibhotla <sreecha@users.noreply.github.com> | 2017-01-23 14:37:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 14:37:58 -0800 |
commit | 889b0a45352928e2a815c34d5f849be9641284b0 (patch) | |
tree | 03fae6938c9f98f8931be20a57df9e49b944ce78 /src | |
parent | 24e5f3ad6203c4f83fb89907b952b9d19d5fa73f (diff) | |
parent | 89002bcada4f11cb77915ae8c9b0daec86688a78 (diff) |
Merge pull request #9074 from dgquintas/poll_fd_shutdown
poll_posix double shutdown fix
Diffstat (limited to 'src')
-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 5bc5621443..9477ac3688 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); |