Skip to content

Commit

Permalink
start: fix parent PID passed to lxc_set_death_signal
Browse files Browse the repository at this point in the history
Fixes: #2902

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
  • Loading branch information
flx42 committed Mar 12, 2019
1 parent 7e61050 commit b765aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/start.c
Expand Up @@ -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;
Expand Down

0 comments on commit b765aa8

Please sign in to comment.