From: wessels <> Date: Tue, 10 Feb 1998 07:58:42 +0000 (+0000) Subject: move setsid() call to ipc.c X-Git-Tag: SQUID_3_0_PRE1~4130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1f0aa2e01b933e7006ba70ca1b822fa49d70a99;p=thirdparty%2Fsquid.git move setsid() call to ipc.c --- diff --git a/src/dnsserver.cc b/src/dnsserver.cc index 59ad5b3db5..5305460ad6 100644 --- a/src/dnsserver.cc +++ b/src/dnsserver.cc @@ -1,6 +1,6 @@ /* - * $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 @@ -265,9 +265,6 @@ main(int argc, char *argv[]) int i; int c; -#if HAVE_SETSID - setsid(); -#endif safe_inet_addr("255.255.255.255", &no_addr); #if HAVE_RES_INIT diff --git a/src/ipc.cc b/src/ipc.cc index 171065017c..c79d912806 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -1,6 +1,6 @@ /* - * $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 @@ -244,6 +244,9 @@ ipcCreate(int type, const char *prog, char *const args[], const char *name, int 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); diff --git a/src/pinger.cc b/src/pinger.cc index aebc761aeb..783b1de258 100644 --- a/src/pinger.cc +++ b/src/pinger.cc @@ -1,6 +1,6 @@ /* - * $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 @@ -319,9 +319,6 @@ main(int argc, char *argv[]) char *t; time_t last_check_time = 0; -#if HAVE_SETSID - setsid(); -#endif if ((t = getenv("SQUID_DEBUG"))) debug_args = xstrdup(t); getCurrentTime(); diff --git a/src/unlinkd.cc b/src/unlinkd.cc index 936688e94f..0c09476cbd 100644 --- a/src/unlinkd.cc +++ b/src/unlinkd.cc @@ -1,5 +1,5 @@ /* - * $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 @@ -59,7 +59,6 @@ main(int argc, char *argv[]) { char buf[UNLINK_BUF_LEN]; char *t; - setsid(); setbuf(stdin, NULL); while (fgets(buf, UNLINK_BUF_LEN, stdin)) { if ((t = strchr(buf, '\n')))