From: Henrik Nordstrom Date: Thu, 19 Mar 2009 09:09:03 +0000 (+0100) Subject: Bug #2605: Don't call setsid() on helper childs when running in daemon mode X-Git-Tag: SQUID_3_2_0_1~1115 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=483b7ad9ee8cd88fea461d8e044c72d8997924f9;p=thirdparty%2Fsquid.git Bug #2605: Don't call setsid() on helper childs when running in daemon mode --- diff --git a/src/ipc.cc b/src/ipc.cc index a6248a5290..d7f873fa17 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -381,13 +381,9 @@ 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) { - squid_signal(SIGINT, SIG_IGN, SA_RESETHAND); - squid_signal(SIGHUP, SIG_IGN, SA_RESETHAND); - } - #if HAVE_SETSID - setsid(); + if (opt_no_daemon) { + setsid(); #endif execvp(prog, (char *const *) args);