]> git.proxmox.com Git - pve-manager.git/commitdiff
pvescheduler: do not delay restart artifically
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Nov 2021 19:14:40 +0000 (20:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Nov 2021 19:14:40 +0000 (20:14 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Service/pvescheduler.pm

index 700c96ec8e4eb5af0a6ff2c6a90a2158816a47da..28767dc0f1f789ecb82912610648969a2f4dbb1e 100755 (executable)
@@ -113,7 +113,7 @@ sub run {
 
        my $slept = 0; # SIGCHLD interrupts sleep, so we need to keep track
        while ($slept < $sleep_time) {
-           last if $self->{shutdown_request};
+           last if $self->{shutdown_request} || $self->{got_hup_signal};
            $slept += sleep($sleep_time - $slept);
        }
     }