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:
parent
f3a33995cd
commit
ce0ae1edec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user