The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/2340
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From 11c69d5e77a44f973632c649a6ed7cc961db8abc Mon Sep 17 00:00:00 2001 From: Christian Brauner <christian.brau...@ubuntu.com> Date: Tue, 22 May 2018 23:26:03 +0200 Subject: [PATCH] lxc-init: skip signals that can't be caught Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com> --- src/lxc/cmd/lxc_init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lxc/cmd/lxc_init.c b/src/lxc/cmd/lxc_init.c index 228a2eb8b..c673bc60a 100644 --- a/src/lxc/cmd/lxc_init.c +++ b/src/lxc/cmd/lxc_init.c @@ -327,6 +327,11 @@ int main(int argc, char *argv[]) /* restore default signal handlers */ for (i = 1; i < NSIG; i++) { sighandler_t sigerr; + + if (i == SIGILL || i == SIGSEGV || i == SIGBUS || + i == SIGSTOP || i == SIGKILL || i == 32 || i == 33) + continue; + sigerr = signal(i, SIG_DFL); if (sigerr == SIG_ERR) { DEBUG("%s - Failed to reset to default action "
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel