]> git.ipfire.org Git - pakfire.git/commitdiff
jail: Don't let the second child die when the first child finishes
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Nov 2023 17:47:24 +0000 (17:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Nov 2023 17:47:24 +0000 (17:47 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/jail.c

index 8821dd9c44ad97feccdc8c89704a2d62ddf9e831..acbf56454973a78b9960b7eff1363f5e679e81c2 100644 (file)
@@ -1786,13 +1786,6 @@ static int pakfire_jail_child2(struct pakfire_jail* jail,
 
        CTX_DEBUG(jail->ctx, "Launched child process in jail with PID %d\n", pid);
 
-       // Die with parent
-       r = prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0);
-       if (r) {
-               CTX_ERROR(jail->ctx, "Could not configure to die with parent: %m\n");
-               return 126;
-       }
-
        // Make this process dumpable
        r = prctl (PR_SET_DUMPABLE, 1, 0, 0, 0);
        if (r) {