From: hno <> Date: Mon, 18 Jun 2007 04:08:48 +0000 (+0000) Subject: Bug #1900: Double "squid -k shutdown" makes Squid restart again X-Git-Tag: SQUID_3_0_PRE7~217 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06a0fbd33e9f2f26a70c789a162aac0318c02fbb;p=thirdparty%2Fsquid.git Bug #1900: Double "squid -k shutdown" makes Squid restart again --- diff --git a/src/main.cc b/src/main.cc index 20788cb091..b01f7a5a6f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.447 2007/04/30 16:56:09 wessels Exp $ + * $Id: main.cc,v 1.448 2007/06/17 22:08:48 hno Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -1576,6 +1576,12 @@ watch_child(char *argv[]) exit(0); break; + case SIGINT: + case SIGTERM: + syslog(LOG_ALERT, "Exiting due to unexpected forced shutdown"); + exit(1); + break; + default: break; }