mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-25 10:53:37 +00:00
daemon: fix send termination to all workers on exit
The hash slice did not work as intented here, it only return the keys from the last elemend defined in the slice, thus not all workers got a TERM. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8767dd7c1a
commit
75b6832cf8
@ -201,7 +201,7 @@ my $terminate_server = sub {
|
||||
return if $allow_open_children && $self->{leave_children_open_on_reload};
|
||||
|
||||
# else send TERM to all (old and current) child workers
|
||||
kill 15, keys %{$self->@{'workers','old_workers'}};
|
||||
kill 15, (keys %{$self->{workers}}, keys %{$self->{old_workers}});
|
||||
|
||||
# nicely shutdown childs (give them max 10 seconds to shut down)
|
||||
my $previous_alarm = alarm(10);
|
||||
|
Loading…
Reference in New Issue
Block a user