mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 09:22:03 +00:00
pvescheduler: do not delay restart artifically
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
983ad9b91b
commit
7d546fb5fd
@ -113,7 +113,7 @@ sub run {
|
|||||||
|
|
||||||
my $slept = 0; # SIGCHLD interrupts sleep, so we need to keep track
|
my $slept = 0; # SIGCHLD interrupts sleep, so we need to keep track
|
||||||
while ($slept < $sleep_time) {
|
while ($slept < $sleep_time) {
|
||||||
last if $self->{shutdown_request};
|
last if $self->{shutdown_request} || $self->{got_hup_signal};
|
||||||
$slept += sleep($sleep_time - $slept);
|
$slept += sleep($sleep_time - $slept);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user