From: Alex Rousskov Date: Thu, 21 Apr 2011 15:19:31 +0000 (-0600) Subject: Temporary fix for coredumps during shutdown cleanup. X-Git-Tag: take06 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74d4c7486c53c77f1e06c3f04185b4c6f0695ca7;p=thirdparty%2Fsquid.git Temporary fix for coredumps during shutdown cleanup. For a permanent fix, we need to avoid deleting fd_table while it is still in use by others, such as DeferredReads, possibly by allowing event loop to run during shutdown. --- diff --git a/src/comm.cc b/src/comm.cc index b92dc8e92f..67ea17a06a 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -144,7 +144,7 @@ fd_debug_t *fdd_table = NULL; bool isOpen(const int fd) { - return fd >= 0 && fd_table[fd].flags.open != 0; + return fd >= 0 && fd_table && fd_table[fd].flags.open != 0; } /**