From: Felix Abecassis Date: Tue, 12 Mar 2019 00:15:45 +0000 (-0700) Subject: start: fix parent PID passed to lxc_set_death_signal X-Git-Tag: lxc-3.2.0~115^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b765aa883eddbc1461d964d042fb3239bd5fab5a;p=thirdparty%2Flxc.git start: fix parent PID passed to lxc_set_death_signal Fixes: #2902 Signed-off-by: Felix Abecassis --- 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;