5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2024-12-26 07:21:26 +03:00

Daemon: catch finished worker earlier

Else we get zobies for 5 seconds at restart.
This commit is contained in:
Dietmar Maurer 2015-01-01 14:59:04 +01:00
parent f3a33995cd
commit ce0ae1edec

View File

@ -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);