From: hno <> Date: Sun, 10 Jun 2007 16:43:17 +0000 (+0000) Subject: Restore the code making helpers run in their own sessions. X-Git-Tag: SQUID_3_0_PRE7~225 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=627403592a9d3e02e35c01e4337aa6ec083d620c;p=thirdparty%2Fsquid.git 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. --- 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+");