Unverified Commit 232b8c42 by Felix Abecassis Committed by Christian Brauner

start: fix parent PID passed to lxc_set_death_signal

Fixes: #2902 Signed-off-by: 's avatarFelix Abecassis <fabecassis@nvidia.com>
parent f5ca34df
...@@ -1096,7 +1096,7 @@ static int do_start(void *data) ...@@ -1096,7 +1096,7 @@ static int do_start(void *data)
* exit before we set the pdeath signal leading to a unsupervized * exit before we set the pdeath signal leading to a unsupervized
* container. * container.
*/ */
ret = lxc_set_death_signal(SIGKILL, 0); ret = lxc_set_death_signal(SIGKILL, handler->monitor_pid);
if (ret < 0) { if (ret < 0) {
SYSERROR("Failed to set PR_SET_PDEATHSIG to SIGKILL"); SYSERROR("Failed to set PR_SET_PDEATHSIG to SIGKILL");
goto out_warn_father; goto out_warn_father;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment