From b765aa883eddbc1461d964d042fb3239bd5fab5a Mon Sep 17 00:00:00 2001 From: Felix Abecassis Date: Mon, 11 Mar 2019 17:15:45 -0700 Subject: [PATCH] start: fix parent PID passed to lxc_set_death_signal Fixes: #2902 Signed-off-by: Felix Abecassis --- src/lxc/start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 31fa3f8a4..139f42963 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -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; -- 2.47.2