/*
- * $Id: dnsserver.cc,v 1.43 1998/02/10 00:42:54 wessels Exp $
+ * $Id: dnsserver.cc,v 1.44 1998/02/10 00:58:44 wessels Exp $
*
* DEBUG: section 0 DNS Resolver
* AUTHOR: Harvest Derived
int i;
int c;
-#if HAVE_SETSID
- setsid();
-#endif
safe_inet_addr("255.255.255.255", &no_addr);
#if HAVE_RES_INIT
/*
- * $Id: ipc.cc,v 1.2 1998/02/02 21:16:26 wessels Exp $
+ * $Id: ipc.cc,v 1.3 1998/02/10 00:58:42 wessels Exp $
*
* DEBUG: section 54 Interprocess Communication
* AUTHOR: Duane Wessels
if (cwfd != crfd)
if (cwfd > 2)
close(cwfd);
+#if HAVE_SETSID
+ setsid();
+#endif
execvp(prog, args);
debug(50, 0) ("ipcCreate: %s: %s\n", prog, xstrerror());
_exit(1);
/*
- * $Id: pinger.cc,v 1.31 1998/02/10 00:42:55 wessels Exp $
+ * $Id: pinger.cc,v 1.32 1998/02/10 00:58:43 wessels Exp $
*
* DEBUG: section 42 ICMP Pinger program
* AUTHOR: Duane Wessels
char *t;
time_t last_check_time = 0;
-#if HAVE_SETSID
- setsid();
-#endif
if ((t = getenv("SQUID_DEBUG")))
debug_args = xstrdup(t);
getCurrentTime();
/*
- * $Id: unlinkd.cc,v 1.18 1998/02/10 00:42:54 wessels Exp $
+ * $Id: unlinkd.cc,v 1.19 1998/02/10 00:58:44 wessels Exp $
*
* DEBUG: section 43 Unlink Daemon
* AUTHOR: Duane Wessels
{
char buf[UNLINK_BUF_LEN];
char *t;
- setsid();
setbuf(stdin, NULL);
while (fgets(buf, UNLINK_BUF_LEN, stdin)) {
if ((t = strchr(buf, '\n')))