Index: squid/src/main.c diff -c squid/src/main.c:1.345.2.7 squid/src/main.c:1.345.2.8 *** squid/src/main.c:1.345.2.7 Mon Jan 13 16:01:13 2003 --- squid/src/main.c Wed Jan 29 15:33:49 2003 *************** *** 950,960 **** SquidShutdown(void *unused) { debug(1, 1) ("Shutting down...\n"); - if (Config.pidFilename && strcmp(Config.pidFilename, "none")) { - enter_suid(); - safeunlink(Config.pidFilename, 0); - leave_suid(); - } icpConnectionClose(); #if USE_HTCP htcpSocketClose(); --- 950,955 ---- *************** *** 1017,1022 **** --- 1012,1022 ---- #if MEM_GEN_TRACE log_trace_done(); #endif + if (Config.pidFilename && strcmp(Config.pidFilename, "none") != 0) { + enter_suid(); + safeunlink(Config.pidFilename, 0); + leave_suid(); + } debug(1, 1) ("Squid Cache (Version %s): Exiting normally.\n", version_string); if (debug_log)