From: hno <> Date: Sun, 5 Jun 2005 05:57:05 +0000 (+0000) Subject: Also need to ignore SIGHUP on helpers in foreground mode X-Git-Tag: SQUID_3_0_PRE4~732 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc090025e6e36fadf3988e7d94c6406985072956;p=thirdparty%2Fsquid.git Also need to ignore SIGHUP on helpers in foreground mode --- diff --git a/src/ipc.cc b/src/ipc.cc index 415c90204b..f7e325d0cd 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -1,6 +1,6 @@ /* - * $Id: ipc.cc,v 1.40 2005/05/27 07:18:08 hno Exp $ + * $Id: ipc.cc,v 1.41 2005/06/04 23:57:05 hno Exp $ * * DEBUG: section 54 Interprocess Communication * AUTHOR: Duane Wessels @@ -377,8 +377,10 @@ 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) + if (opt_no_daemon) { squid_signal(SIGINT, SIG_IGN, SA_RESETHAND); + squid_signal(SIGHUP, SIG_IGN, SA_RESETHAND); + } execvp(prog, (char *const *) args);