]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1900: Double "squid -k shutdown" makes Squid restart again
authorhno <>
Mon, 18 Jun 2007 04:08:48 +0000 (04:08 +0000)
committerhno <>
Mon, 18 Jun 2007 04:08:48 +0000 (04:08 +0000)
src/main.cc

index 20788cb09171ea52884dfc7211e7cb40ec52063f..b01f7a5a6f573e14aba673b5a45a93436b6b1d3a 100644 (file)
@@ -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;
             }