--------------------- PatchSet 11199 Date: 2007/01/25 20:24:46 Author: wessels Branch: HEAD Tag: (none) Log: unlinkdClose() should be called after (not before) storeDirSync() The storeDirSync call may initiate some deletions, which may make their way to unlinkdUnlink(), which has an assertion requring that the connection to unlinkd still exists. Members: src/main.c:1.393->1.394 Index: squid/src/main.c =================================================================== RCS file: /cvsroot/squid/squid/src/main.c,v retrieving revision 1.393 retrieving revision 1.394 diff -u -r1.393 -r1.394 --- squid/src/main.c 13 Jan 2007 16:10:14 -0000 1.393 +++ squid/src/main.c 25 Jan 2007 20:24:46 -0000 1.394 @@ -1,6 +1,6 @@ /* - * $Id: main.c,v 1.393 2007/01/13 16:10:14 hno Exp $ + * $Id: main.c,v 1.394 2007/01/25 20:24:46 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -1094,13 +1094,13 @@ releaseServerSockets(); commCloseAllSockets(); authenticateShutdown(); -#if USE_UNLINKD - unlinkdClose(); -#endif #if defined(USE_WIN32_SERVICE) && defined(_SQUID_WIN32_) WIN32_svcstatusupdate(SERVICE_STOP_PENDING, 10000); #endif storeDirSync(); /* Flush pending object writes/unlinks */ +#if USE_UNLINKD + unlinkdClose(); /* after storeDirSync! */ +#endif storeDirWriteCleanLogs(0); PrintRusage(); dumpMallocStats();