From: Amos Jeffries Date: Sat, 21 Jul 2012 01:09:39 +0000 (-0600) Subject: Bug 3556 Workaround: epoll assertion failed: comm.cc:1093: isOpen(fd) X-Git-Tag: SQUID_3_2_0_19~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84c9e227bacf32a71cfc449c6c33b632f50b6df;p=thirdparty%2Fsquid.git Bug 3556 Workaround: epoll assertion failed: comm.cc:1093: isOpen(fd) --- diff --git a/src/comm.cc b/src/comm.cc index e39f66b1a8..878b1bb545 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1090,7 +1090,11 @@ _comm_close(int fd, char const *file, int line) return; /* The following fails because ipc.c is doing calls to pipe() to create sockets! */ - assert(isOpen(fd)); + if (!isOpen(fd)) { + debugs(50, DBG_IMPORTANT, HERE << "BUG 3556: FD " << fd << " is not an open socket."); + // XXX: do we need to run close(fd) or fd_close(fd) here? + return; + } assert(F->type != FD_FILE);