poll_posix double shutdown fix

pull/9074/head
David Garcia Quintas 8 years ago
parent 4603a1c7a4
commit e272af07c7
  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) { const char *reason) {
fd->on_done_closure = on_done; fd->on_done_closure = on_done;
fd->released = release_fd != NULL; fd->released = release_fd != NULL;
if (!fd->released) { if (fd->released) {
shutdown(fd->fd, SHUT_RDWR);
} else {
*release_fd = fd->fd; *release_fd = fd->fd;
} }
gpr_mu_lock(&fd->mu); gpr_mu_lock(&fd->mu);

Loading…
Cancel
Save