]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
lrm: log actual error if fork fails
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Jan 2022 12:39:35 +0000 (13:39 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Jan 2022 12:39:35 +0000 (13:39 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/LRM.pm

index 86d0a34ffb0e93508611779cb85871c4c508499e..29f89e2d65827d0de8d9f07cd93368e825f6ebd6 100644 (file)
@@ -568,7 +568,7 @@ sub run_workers {
                if ($max_workers > 0) {
                    my $pid = fork();
                    if (!defined($pid)) {
-                       $haenv->log('err', "fork worker failed");
+                       $haenv->log('err', "forking worker failed - $!");
                        $count = 0; last; # abort, try later
                    } elsif ($pid == 0) {
                        $haenv->after_fork(); # cleanup