mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-04 19:50:30 +00:00
Merge pull request #2923 from flx42/more-pdeathsig-fixes
More pdeathsig fixes
This commit is contained in:
commit
4f34c6f95d
@ -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;
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user