/*
- * $Id: comm.cc,v 1.152 1997/05/15 23:32:27 wessels Exp $
+ * $Id: comm.cc,v 1.153 1997/05/16 07:42:49 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
fde->timeout_data = NULL;
return fde->timeout = 0;
}
- if (shutdown_pending || reread_pending) {
+ if (shutdown_pending || reconfigure_pending) {
/* don't increase the timeout if something pending */
if (fde->timeout > 0 && (int) (fde->timeout - squid_curtime) < timeout)
return fde->timeout;
do {
if (sec > 60)
fatal_dump(NULL);
- if (shutdown_pending || reread_pending) {
+ if (shutdown_pending || reconfigure_pending) {
serverConnectionsClose();
ftpServerClose();
dnsShutdownServers();
/* shutdown_pending will be set to
* +1 for SIGTERM
* -1 for SIGINT */
- /* reread_pending always == 1 when SIGHUP received */
- if (shutdown_pending > 0 || reread_pending > 0)
+ /* reconfigure_pending always == 1 when SIGHUP received */
+ if (shutdown_pending > 0 || reconfigure_pending > 0)
setSocketShutdownLifetimes(Config.shutdownLifetime);
else
setSocketShutdownLifetimes(1);
nfds++;
}
}
- if (shutdown_pending || reread_pending)
+ if (shutdown_pending || reconfigure_pending)
debug(5, 2, "comm_poll: Still waiting on %d FDs\n", nfds);
#ifdef WTFISTHIS
if (pending_time == 0)
FD_ZERO(&readfds);
FD_ZERO(&writefds);
- if (shutdown_pending || reread_pending) {
+ if (shutdown_pending || reconfigure_pending) {
serverConnectionsClose();
ftpServerClose();
dnsShutdownServers();
/* shutdown_pending will be set to
* +1 for SIGTERM
* -1 for SIGINT */
- /* reread_pending always == 1 when SIGHUP received */
- if (shutdown_pending > 0 || reread_pending > 0)
+ /* reconfigure_pending always == 1 when SIGHUP received */
+ if (shutdown_pending > 0 || reconfigure_pending > 0)
setSocketShutdownLifetimes(Config.shutdownLifetime);
else
setSocketShutdownLifetimes(0);
FD_SET(i, &writefds);
}
}
- if (shutdown_pending || reread_pending)
+ if (shutdown_pending || reconfigure_pending)
debug(5, 2, "comm_select: Still waiting on %d FDs\n", nfds);
if (nfds == 0)
return COMM_SHUTDOWN;
/*
- * $Id: redirect.cc,v 1.42 1997/05/08 07:22:06 wessels Exp $
+ * $Id: redirect.cc,v 1.43 1997/05/16 07:44:21 wessels Exp $
*
* DEBUG: section 29 Redirector
* AUTHOR: Duane Wessels
put_free_8k_page(redirector->inbuf);
redirector->inbuf = NULL;
comm_close(fd);
- if (--NRedirectorsOpen == 0 && !shutdown_pending && !reread_pending)
+ if (--NRedirectorsOpen == 0 && !shutdown_pending && !reconfigure_pending)
fatal_dump("All redirectors have exited!");
return;
}
/*
- * $Id: squid.h,v 1.114 1997/05/15 23:43:12 wessels Exp $
+ * $Id: squid.h,v 1.115 1997/05/16 07:43:08 wessels Exp $
*
* AUTHOR: Duane Wessels
*
extern int theOutIcpConnection; /* main.c */
extern int vizSock;
extern volatile int shutdown_pending; /* main.c */
-extern volatile int reread_pending; /* main.c */
+extern volatile int reconfigure_pending;/* main.c */
extern int opt_reload_hit_only; /* main.c */
extern int opt_dns_tests; /* main.c */
extern int opt_foreground_rebuild; /* main.c */
extern int opt_mem_pools; /* main.c */
extern int opt_forwarded_for; /* main.c */
extern int opt_accel_uses_host; /* main.c */
+extern int configured_once; /* main.c */
extern char ThisCache[]; /* main.c */
/* Prototypes and definitions which don't really deserve a separate