diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-10-28 01:41:14 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-10-28 01:41:14 -0400 |
commit | 1693cc5c19d038247147ed19943c78ff47e43c87 (patch) | |
tree | a96076dc7c22de68261e8c7d9e2cccdd36117e80 | |
parent | use default lzma compression level (diff) | |
download | sandbox-1693cc5c19d038247147ed19943c78ff47e43c87.tar.gz sandbox-1693cc5c19d038247147ed19943c78ff47e43c87.tar.bz2 sandbox-1693cc5c19d038247147ed19943c78ff47e43c87.zip |
sandbox: dont warn about inherited ignored signals
Inheriting signals are normal/fine, so don't warn about those since they
aren't a problem.
URL: http://bugs.gentoo.org/285341
Reported-by: Paul Varner <fuzzyray@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | src/sandbox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sandbox.c b/src/sandbox.c index ab8051f..d36126e 100644 --- a/src/sandbox.c +++ b/src/sandbox.c @@ -131,7 +131,7 @@ static void stop(int signum) { if (0 == stop_called) { stop_called = 1; - sb_warn("caught signal %d in pid %d\n", signum, getpid()); + sb_warn("caught signal %d in pid %d", signum, getpid()); } else sb_warn("signal already caught and busy still cleaning up!"); } @@ -316,9 +316,9 @@ int main(int argc, char **argv) do { \ sighandler_t _old = signal(sig, act); \ if (_old == SIG_ERR) \ - sb_pwarn("unable to bind signal %s\n", #sig); \ - else if (_old != SIG_DFL) \ - sb_warn("signal %s already had a handler ...\n", #sig); \ + sb_pwarn("unable to bind signal %s", #sig); \ + else if (_old != SIG_DFL && _old != SIG_IGN) \ + sb_warn("signal %s already had a handler ...", #sig); \ } while (0) wsignal(SIGINT, &stop); wsignal(SIGQUIT, &stop); |