static void diediedie(CFRunLoopTimerRef timer, void *context) { debug("entry %p %p %d", timer, context, maxidle); assert(gTimer == timer); if (maxidle) (void)proxy_mDNSExit(gPort); }
static void diediedie(CFRunLoopTimerRef timer, void *context) { debug("entry %p %p %d", timer, context, actualidle); assert(gTimer == timer); helplog(ASL_LEVEL_INFO, "mDNSResponder exiting after %d seconds", actualidle); if (actualidle) (void)proxy_mDNSExit(gPort); }
static void handle_sigterm(int sig) { // debug("entry sig=%d", sig); Can't use syslog from within a signal handler assert(sig == SIGTERM); (void)proxy_mDNSExit(gPort); }