]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3556 Workaround: epoll assertion failed: comm.cc:1093: isOpen(fd)
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 Jul 2012 01:09:39 +0000 (19:09 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 21 Jul 2012 01:09:39 +0000 (19:09 -0600)
src/comm.cc

index e39f66b1a847aea161b47a23012f67fc0b1e550f..878b1bb545f337d1c0d2c52e93b750655b97601d 100644 (file)
@@ -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);