// Shutdown as soon as possible.
wait = 0;
#endif
- } else {
+ } else {
shutting_down = 1;
/* run the closure code which can be shared with reconfigure */
}
#if USE_WIN32_SERVICE
- WIN32_svcstatusupdate(SERVICE_STOP_PENDING, (wait + 1) * 1000);
+ WIN32_svcstatusupdate(SERVICE_STOP_PENDING, (wait + 1) * 1000);
#endif
eventAdd("SquidShutdown", &StopEventLoop, this, (double) (wait + 1), 1, false);
#else
- } while (pid > 0 || (pid < 0 && errno == EINTR));
+ }
+ while (pid > 0 || (pid < 0 && errno == EINTR));
#endif
#endif
}
}
if (!InDaemonMode())
- writePidFile(); /* write PID file */
+ writePidFile(); /* write PID file */
reconfiguring = 0;
}
// signals to kids. Otherwise, wait for a kid to die or for a signal
// to abort the blocking WaitForAnyPid() call.
// With the WNOHANG option, we could check whether WaitForAnyPid() was
- // aborted by a dying kid or a signal, but it is not required: The
+ // aborted by a dying kid or a signal, but it is not required: The
// next do/while loop will check again for any dying kids.
int waitFlag = 0;
if (masterSignaled())
" be restarted due to repeated, frequent failures",
kid->name().termedBuf(), kid->getPid());
}
- } else if (pid > 0){
+ } else if (pid > 0) {
syslog(LOG_NOTICE, "Squid Parent: unknown child process %d exited", pid);
}