From cc090025e6e36fadf3988e7d94c6406985072956 Mon Sep 17 00:00:00 2001 From: hno <> Date: Sun, 5 Jun 2005 05:57:05 +0000 Subject: [PATCH] Also need to ignore SIGHUP on helpers in foreground mode --- src/ipc.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.47.2