/*
- * $Id: dnsserver.cc,v 1.42 1998/02/05 17:37:43 wessels Exp $
+ * $Id: dnsserver.cc,v 1.43 1998/02/10 00:42:54 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: pinger.cc,v 1.30 1998/02/03 04:21:19 wessels Exp $
+ * $Id: pinger.cc,v 1.31 1998/02/10 00:42:55 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.17 1998/02/04 23:42:12 wessels Exp $
+ * $Id: unlinkd.cc,v 1.18 1998/02/10 00:42:54 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')))
debug_trap("unlinkdClose: unlinkd_fd < 0");
return;
}
+ debug(43, 1)("Closing unlinkd pipe on FD %d\n", unlinkd_fd);
file_close(unlinkd_fd);
unlinkd_fd = -1;
#endif