kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit e170e916ced43134b38f502c25b9fd84c1030568
parent b4deea82b43b5592af425de3d4c680882cb869ca
Author: Joris Vink <joris@coders.se>
Date:   Wed,  5 Jun 2013 13:50:50 +0200

Reload the module in the main process as well when SIGHUP is received.
Otherwise new worker processes will not receive the updated module.

Diffstat:
src/kore.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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",