]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Restore the code making helpers run in their own sessions.
authorhno <>
Sun, 10 Jun 2007 16:43:17 +0000 (16:43 +0000)
committerhno <>
Sun, 10 Jun 2007 16:43:17 +0000 (16:43 +0000)
Having the helpers in the same session / process group as Squid broke
debugging with Squid running in foreground, which is worth more than
to have the process associations entirely correct.

src/ipc.cc

index 42392e0f2b19bbff41eaa71dd3d998a9aafeebbd..c844d136ee0e04900b59dfc71205957d603751b2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipc.cc,v 1.45 2007/04/28 22:26:37 hno Exp $
+ * $Id: ipc.cc,v 1.46 2007/06/10 10:43:17 hno Exp $
  *
  * DEBUG: section 54    Interprocess Communication
  * AUTHOR: Duane Wessels
@@ -386,6 +386,10 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
         squid_signal(SIGHUP, SIG_IGN, SA_RESETHAND);
     }
 
+#if HAVE_SETSID
+    setsid();
+#endif
+
     execvp(prog, (char *const *) args);
 
     debug_log = fdopen(2, "a+");