[lxc-devel] [PATCH 1/1] lxc_init: don't fail on bad signals
Serge Hallyn
serge.hallyn at ubuntu.com
Thu Jan 23 02:49:55 UTC 2014
Changelog: Jan 22: as Michael Warfield pointed out, we should only
ignore EINVAL, since EFAULT points to a more serious problem.
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
src/lxc/lxc_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/lxc_init.c b/src/lxc/lxc_init.c
index ae64af8..3e51c00 100644
--- a/src/lxc/lxc_init.c
+++ b/src/lxc/lxc_init.c
@@ -159,7 +159,7 @@ int main(int argc, char *argv[])
act.sa_flags = 0;
act.sa_handler = interrupt_handler;
- if (sigaction(i, &act, NULL)) {
+ if (sigaction(i, &act, NULL) && errno != EINVAL) {
SYSERROR("failed to sigaction");
exit(EXIT_FAILURE);
}
--
1.8.5.3
More information about the lxc-devel
mailing list