From 87d28cd01ad8396e9a1cfdd2a25a7ac9e532a21f Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 10 Apr 2009 20:17:40 +1200 Subject: [PATCH] Author: Henrik Nordstrom Bug #2605: Don't call setsid() on helper childs when running in daemon mode --- src/ipc.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ipc.cc b/src/ipc.cc index c844d136ee..576aa5e1f2 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); -- 2.47.2