From f84c9e227bacf32a71cfc449c6c33b632f50b6df Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 20 Jul 2012 19:09:39 -0600 Subject: [PATCH] Bug 3556 Workaround: epoll assertion failed: comm.cc:1093: isOpen(fd) --- src/comm.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.47.2