mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-24 20:52:16 +00:00
lxc-init: skip signals that can't be caught
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
394769b16a
commit
11c69d5e77
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user