From: Serge Hallyn Date: Thu, 23 Jan 2014 02:49:55 +0000 (-0600) Subject: lxc_init: don't fail on bad signals X-Git-Tag: lxc-1.0.0.beta3~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bba1fbe695170acbe6466ed78a3b6a05a4f3a4be;p=thirdparty%2Flxc.git 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: Serge Hallyn Acked-by: Stéphane Graber --- diff --git a/src/lxc/lxc_init.c b/src/lxc/lxc_init.c index ae64af858..3e51c00e1 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); }