forked from mirrors/kore
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:
parent
b4deea82b4
commit
e170e916ce
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue