Reload the module in the main process as well when SIGHUP is received.

Otherwise new worker processes will not receive the updated module.
This commit is contained in:
Joris Vink 2013-06-05 13:50:50 +02:00
parent b4deea82b4
commit e170e916ce
1 changed files with 1 additions and 0 deletions

View File

@ -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",