From 97d8f4b77303404b873ffd113e11aa9328b6376d Mon Sep 17 00:00:00 2001 From: Felix Abecassis Date: Wed, 3 Apr 2019 21:12:38 -0700 Subject: [PATCH] Fix monitor 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 793bf816a..46a92d3d4 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1438,7 +1438,7 @@ static int do_start(void *data) } if (handler->conf->monitor_signal_pdeath != SIGKILL) { - ret = lxc_set_death_signal(handler->conf->monitor_signal_pdeath, 0); + ret = lxc_set_death_signal(handler->conf->monitor_signal_pdeath, handler->monitor_pid); if (ret < 0) { SYSERROR("Failed to set PR_SET_PDEATHSIG to %d", handler->conf->monitor_signal_pdeath); -- 2.47.2