be less spammy

This commit is contained in:
Joris Vink 2013-06-04 16:17:42 +02:00
parent ab0dc25c61
commit 11fca19923
1 changed files with 2 additions and 4 deletions

View File

@ -127,7 +127,6 @@ main(int argc, char *argv[])
for (;;) {
if (sig_recv != 0) {
kore_log("signal %d received", sig_recv);
if (sig_recv == SIGHUP) {
TAILQ_FOREACH(kw, &kore_workers, list) {
if (kill(kw->pid, SIGHUP) == -1) {
@ -151,10 +150,9 @@ main(int argc, char *argv[])
kore_log("kill(%d, SIGINT): %s", kw->pid, errno_s);
}
while (!TAILQ_EMPTY(&kore_workers)) {
kore_log("waiting for workers to drain and finish");
kore_log("waiting for workers to drain and finish");
while (!TAILQ_EMPTY(&kore_workers))
kore_worker_wait(1);
}
kore_log("server shutting down");
close(server.fd);