From: Alex Rousskov Date: Tue, 6 Sep 2011 20:14:29 +0000 (-0600) Subject: Temporary fixed coredumps when isOpen() is called during shutdown cleanup. X-Git-Tag: take08~24^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a5ac93dfd8dd7d38a362035c1ef021b3184a86f;p=thirdparty%2Fsquid.git Temporary fixed coredumps when isOpen() is called 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 5d40c6f3f5..3fc3a65774 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -106,7 +106,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; } /**