This commit is contained in:
Joris Vink 2013-06-04 16:33:35 +02:00
parent e7db5ee6b1
commit 443b1c8c5f
2 changed files with 4 additions and 2 deletions

View File

@ -125,12 +125,14 @@ main(int argc, char *argv[])
signal(SIGQUIT, kore_signal);
signal(SIGHUP, kore_signal);
printf("kore has been started\n");
for (;;) {
if (sig_recv != 0) {
if (sig_recv == SIGHUP) {
TAILQ_FOREACH(kw, &kore_workers, list) {
if (kill(kw->pid, SIGHUP) == -1) {
kore_debug("kill(%d, SIGHUP): %s",
kore_debug("kill(%d, HUP): %s",
kw->pid, errno_s);
}
}

View File

@ -108,7 +108,7 @@ spdy_frame_recv(struct netbuf *nb)
} else {
data.stream_id = net_read32(nb->buf) & ~(1 << 31);
if ((s = spdy_stream_lookup(c, data.stream_id)) == NULL) {
kore_debug("received data frame for non existing stream");
kore_debug("recv data frame for non existing stream");
r = KORE_RESULT_ERROR;
} else if (s->flags & FLAG_FIN) {
kore_debug("received data frame but FLAG_FIN was set");