X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=data%2FPVE%2FDaemon.pm;fp=data%2FPVE%2FDaemon.pm;h=9ba05dc20949225d63fb49ad3e81058ae9f5cbcf;hp=bfab09d9e0248632a4eed254f1cf41869d4d125b;hb=ce0ae1edec5f7c6e818077ebdd76694e7541520a;hpb=f3a33995cd8918e6640f9f4ade213adb88bfe9fa diff --git a/data/PVE/Daemon.pm b/data/PVE/Daemon.pm index bfab09d..9ba05dc 100644 --- a/data/PVE/Daemon.pm +++ b/data/PVE/Daemon.pm @@ -335,7 +335,11 @@ my $server_run = sub { &$old_sig_chld(@_) if $old_sig_chld; }; - for (;;) { # forever + # catch worker finished during restart phase + &$finish_workers($self); + + # now loop forever (until we receive terminate signal) + for (;;) { &$start_workers($self); sleep(5); &$finish_workers($self);