From e170e916ced43134b38f502c25b9fd84c1030568 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Wed, 5 Jun 2013 13:50:50 +0200 Subject: [PATCH] Reload the module in the main process as well when SIGHUP is received. Otherwise new worker processes will not receive the updated module. --- src/kore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kore.c b/src/kore.c index 97e9436..5fe5320 100644 --- a/src/kore.c +++ b/src/kore.c @@ -179,6 +179,7 @@ main(int argc, char *argv[]) for (;;) { if (sig_recv != 0) { if (sig_recv == SIGHUP) { + kore_module_reload(); TAILQ_FOREACH(kw, &kore_workers, list) { if (kill(kw->pid, SIGHUP) == -1) { kore_debug("kill(%d, HUP): %s",