]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Also need to ignore SIGHUP on helpers in foreground mode
authorhno <>
Sun, 5 Jun 2005 05:57:05 +0000 (05:57 +0000)
committerhno <>
Sun, 5 Jun 2005 05:57:05 +0000 (05:57 +0000)
src/ipc.cc

index 415c90204b13f74997eab4189a7ede49e2c061b1..f7e325d0cdb1b7dfd28a454ca9fda37358c5be6b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipc.cc,v 1.40 2005/05/27 07:18:08 hno Exp $
+ * $Id: ipc.cc,v 1.41 2005/06/04 23:57:05 hno Exp $
  *
  * DEBUG: section 54    Interprocess Communication
  * AUTHOR: Duane Wessels
@@ -377,8 +377,10 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
     for (x = 3; x < SQUID_MAXFD; x++)
         close(x);
 
-    if (opt_no_daemon)
+    if (opt_no_daemon) {
         squid_signal(SIGINT, SIG_IGN, SA_RESETHAND);
+        squid_signal(SIGHUP, SIG_IGN, SA_RESETHAND);
+    }
 
     execvp(prog, (char *const *) args);