From 06a0fbd33e9f2f26a70c789a162aac0318c02fbb Mon Sep 17 00:00:00 2001 From: hno <> Date: Mon, 18 Jun 2007 04:08:48 +0000 Subject: [PATCH] Bug #1900: Double "squid -k shutdown" makes Squid restart again --- src/main.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.47.2