From f08a5cc4fc3850ec245a88ce13ace39f77a34ff9 Mon Sep 17 00:00:00 2001 From: Felix Abecassis Date: Wed, 3 Apr 2019 21:09:53 -0700 Subject: [PATCH] Fix user namespace pdeathsig handling 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 139f42963..793bf816a 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1190,7 +1190,7 @@ static int do_start(void *data) goto out_warn_father; /* set{g,u}id() clears deathsignal */ - 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