mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 12:45:35 +00: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;
|
&$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);
|
&$start_workers($self);
|
||||||
sleep(5);
|
sleep(5);
|
||||||
&$finish_workers($self);
|
&$finish_workers($self);
|
||||||
|
Loading…
Reference in New Issue
Block a user