Merge pull request #9074 from dgquintas/poll_fd_shutdown

poll_posix double shutdown fix
pull/9452/head
Sree Kuchibhotla 8 years ago committed by GitHub
commit 889b0a4535
  1. 4
      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);

Loading…
Cancel
Save