Commit bba1fbe6 by Serge Hallyn Committed by Stéphane Graber

lxc_init: don't fail on bad signals

Changelog: Jan 22: as Michael Warfield pointed out, we should only ignore EINVAL, since EFAULT points to a more serious problem. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 86f0eb65
...@@ -159,7 +159,7 @@ int main(int argc, char *argv[]) ...@@ -159,7 +159,7 @@ int main(int argc, char *argv[])
act.sa_flags = 0; act.sa_flags = 0;
act.sa_handler = interrupt_handler; act.sa_handler = interrupt_handler;
if (sigaction(i, &act, NULL)) { if (sigaction(i, &act, NULL) && errno != EINVAL) {
SYSERROR("failed to sigaction"); SYSERROR("failed to sigaction");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment