Why does squid not use setsid()?

From: Arjan de Vet <Arjan.deVet@dont-contact.us>
Date: Wed, 23 Jul 1997 14:06:10 +0200 (MET DST)

I found out that Squid does not use setsid() or something similar like
most other daemons do? Is there a special reason not to use the following:

diff -u -w -r1.1.1.1 main.c
--- main.c 1997/05/14 12:12:00 1.1.1.1
+++ main.c 1997/07/23 11:46:42
@@ -622,6 +622,12 @@
     int n; /* # of GC'd objects */
     time_t loop_delay;

+#if HAVE_SETSID
+ setsid(); /* become session leader */
+#elif HAVE_SETPGRP
+ setpgrp(getpid(), 0);
+#endif
+
     if (FD_SETSIZE < Squid_MaxFD)
        Squid_MaxFD = FD_SETSIZE;

Arjan

Cc: squid-bugs
Received on Wed Jul 23 1997 - 05:13:46 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:49 MST