]> git.proxmox.com Git - pve-common.git/commitdiff
fork_worker: readd the kill safety for _exit again
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Nov 2018 09:07:33 +0000 (10:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 20 Nov 2018 09:07:35 +0000 (10:07 +0100)
to be sure, plus we have this in other places too here, so be
consistent and double safe(tm)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/RESTEnvironment.pm

index cba062d6cff24b9523b46b8cd193f8bc4867bfee..aca18bcacab4a1ceb6534c68689dc4b940a17bf8 100644 (file)
@@ -603,6 +603,7 @@ sub fork_worker {
            }
        }
        POSIX::_exit($exitcode);
            }
        }
        POSIX::_exit($exitcode);
+       kill(-9, $$); # not really needed, just to be sure
     }
 
     # parent
     }
 
     # parent