/*
- * $Id: main.cc,v 1.450 2007/09/25 13:24:59 hno Exp $
+ * $Id: main.cc,v 1.453 2007/12/29 18:20:22 hno Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
#include "SwapDir.h"
#include "forward.h"
#include "MemPool.h"
+#include "ICMPSquid.h"
#if USE_WIN32_SERVICE
case 'X':
/* force full debugging */
+ Debug::parseOptions("debug_options ALL,9");
+ Config.onoff.debug_override_X = 1;
sigusr2_handle(SIGUSR2);
-
break;
case 'Y':
#endif
clientdbInit();
- icmpOpen();
+ icmpEngine.Open();
netdbInit();
asnInit();
ACL::Initialize();
htcpSocketShutdown();
#endif
- icmpClose();
+ icmpEngine.Close();
#ifdef SQUID_SNMP
snmpConnectionShutdown();
static void
mainRotate(void)
{
- icmpClose();
+ icmpEngine.Close();
#if USE_DNSSERVERS
dnsShutdown();
fwdLogRotate();
#endif
- icmpOpen();
+ icmpEngine.Open();
#if USE_DNSSERVERS
dnsInit();
sbrk_start = sbrk(0);
#endif
- Debug::parseOptions("ALL,1");
+ Debug::parseOptions(NULL);
debug_log = stderr;
#if defined(SQUID_MAXFD_LIMIT)
if (oldmask)
umask(oldmask);
- memset(&local_addr, '\0', sizeof(struct IN_ADDR));
-
- safe_inet_addr(localhost, &local_addr);
-
- memset(&any_addr, '\0', sizeof(struct IN_ADDR));
-
- safe_inet_addr("0.0.0.0", &any_addr);
-
- memset(&no_addr, '\0', sizeof(struct IN_ADDR));
-
- safe_inet_addr("255.255.255.255", &no_addr);
-
squid_srandom(time(NULL));
getCurrentTime();
pid, WEXITSTATUS(status));
} else if (WIFSIGNALED(status)) {
syslog(LOG_NOTICE,
- "Squid Parent: child process %d exited due to signal %d",
- pid, WTERMSIG(status));
+ "Squid Parent: child process %d exited due to signal %d with status %d",
+ pid, WTERMSIG(status), WEXITSTATUS(status));
} else {
syslog(LOG_NOTICE, "Squid Parent: child process %d exited", pid);
}