]> git.proxmox.com Git - mirror_lxc.git/commitdiff
start: fix parent PID passed to lxc_set_death_signal
authorFelix Abecassis <fabecassis@nvidia.com>
Tue, 12 Mar 2019 00:15:45 +0000 (17:15 -0700)
committerFelix Abecassis <fabecassis@nvidia.com>
Tue, 12 Mar 2019 00:26:23 +0000 (17:26 -0700)
Fixes: #2902
Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
src/lxc/start.c

index 31fa3f8a4d3acdfecc51241de62383209f8d1b4d..139f429635489c371eed4abfb2c478a2a87c11f5 100644 (file)
@@ -1112,7 +1112,7 @@ static int do_start(void *data)
         * exit before we set the pdeath signal leading to a unsupervized
         * container.
         */
-       ret = lxc_set_death_signal(SIGKILL, 0);
+       ret = lxc_set_death_signal(SIGKILL, handler->monitor_pid);
        if (ret < 0) {
                SYSERROR("Failed to set PR_SET_PDEATHSIG to SIGKILL");
                goto out_warn_father;