lxc-init: skip signals that can't be caught

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-05-22 23:26:03 +02:00
parent 394769b16a
commit 11c69d5e77
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -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 "