File 12483.patch of Package squid
---------------------
PatchSet 12483
Date: 2009/06/25 22:47:17
Author: hno
Branch: SQUID_2_7
Tag: (none)
Log:
MFC: Bug #2605: Don't call setsid() on helper childs when running in daemon mode
Members:
src/ipc.c:1.39->1.39.6.1
Index: squid/src/ipc.c
===================================================================
RCS file: /cvsroot/squid/squid/src/ipc.c,v
retrieving revision 1.39
retrieving revision 1.39.6.1
diff -u -r1.39 -r1.39.6.1
--- squid/src/ipc.c 8 Sep 2006 19:41:24 -0000 1.39
+++ squid/src/ipc.c 25 Jun 2009 22:47:17 -0000 1.39.6.1
@@ -1,6 +1,6 @@
/*
- * $Id: ipc.c,v 1.39 2006/09/08 19:41:24 serassio Exp $
+ * $Id: ipc.c,v 1.39.6.1 2009/06/25 22:47:17 hno Exp $
*
* DEBUG: section 54 Interprocess Communication
* AUTHOR: Duane Wessels
@@ -307,7 +307,8 @@
close(x);
#endif
#if HAVE_SETSID
- setsid();
+ if (opt_no_daemon)
+ setsid();
#endif
execvp(prog, (char *const *) args);
debug_log = fdopen(2, "a+");