From 61278f3aa72b8032f54728e6847b9655acb38ed2 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 8 Jun 2018 11:11:59 +0200 Subject: Revert "Fix shutdown of closed fd when c-ares opens a second fd" --- src/core/lib/iomgr/ev_epollex_linux.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/core/lib/iomgr') diff --git a/src/core/lib/iomgr/ev_epollex_linux.cc b/src/core/lib/iomgr/ev_epollex_linux.cc index 993ea9480e..7903297fc6 100644 --- a/src/core/lib/iomgr/ev_epollex_linux.cc +++ b/src/core/lib/iomgr/ev_epollex_linux.cc @@ -438,12 +438,7 @@ static bool fd_is_shutdown(grpc_fd* fd) { /* Might be called multiple times */ static void fd_shutdown(grpc_fd* fd, grpc_error* why) { if (fd->read_closure->SetShutdown(GRPC_ERROR_REF(why))) { - if (shutdown(fd->fd, SHUT_RDWR)) { - if (errno != ENOTCONN) { - gpr_log(GPR_ERROR, "Error shutting down fd %d. errno: %d", - grpc_fd_wrapped_fd(fd), errno); - } - } + shutdown(fd->fd, SHUT_RDWR); fd->write_closure->SetShutdown(GRPC_ERROR_REF(why)); } GRPC_ERROR_UNREF(why); -- cgit v1.2.3