From 627403592a9d3e02e35c01e4337aa6ec083d620c Mon Sep 17 00:00:00 2001 From: hno <> Date: Sun, 10 Jun 2007 16:43:17 +0000 Subject: [PATCH] Restore the code making helpers run in their own sessions. 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ipc.cc b/src/ipc.cc index 42392e0f2b..c844d136ee 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -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+"); -- 2.47.3