From: wessels <> Date: Fri, 5 Apr 1996 02:03:11 +0000 (+0000) Subject: unlink pid file on shutdown X-Git-Tag: SQUID_3_0_PRE1~6286 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88625a10f59ab853b012c694e08bb87740a8b294;p=thirdparty%2Fsquid.git unlink pid file on shutdown --- diff --git a/src/tools.cc b/src/tools.cc index db2c80bde9..349a04ed9c 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,5 +1,5 @@ -/* $Id: tools.cc,v 1.21 1996/04/04 05:19:51 wessels Exp $ */ +/* $Id: tools.cc,v 1.22 1996/04/04 19:03:11 wessels Exp $ */ /* * DEBUG: Section 21 tools @@ -152,6 +152,8 @@ void shut_down(sig) int sig; { debug(21, 1, "Shutting down...\n"); + if (getPidFilename()) + safeunlink(getPidFilename(), 0); storeWriteCleanLog(); PrintRusage(NULL, debug_log); debug(21, 0, "Harvest Cache (Version %s): Exiting due to signal %d.\n",