diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-02-23 14:58:01 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-02-23 14:58:01 -0500 |
commit | 465306dde9b8640e2985b5a4ff9c9145d82f5460 (patch) | |
tree | a35aed15c6cec0701fe1095b56f641c53165c424 /src/basic/signal-util.h | |
parent | c550f7a9b89d017215af084288bc44f736f774fe (diff) | |
parent | 404d53a968147cbb44b3ecf756b0ab4db77d962a (diff) |
Merge pull request #2725 from phomes/misc-cleanup
Misc cleanup
Diffstat (limited to 'src/basic/signal-util.h')
-rw-r--r-- | src/basic/signal-util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/basic/signal-util.h b/src/basic/signal-util.h index 72b10e8712..a7322ff26a 100644 --- a/src/basic/signal-util.h +++ b/src/basic/signal-util.h @@ -44,9 +44,9 @@ static inline void block_signals_reset(sigset_t *ss) { assert_se(sigprocmask(SIG_SETMASK, ss, NULL) >= 0); } -#define BLOCK_SIGNALS(...) \ - _cleanup_(block_signals_reset) sigset_t _saved_sigset = ({ \ - sigset_t t; \ +#define BLOCK_SIGNALS(...) \ + _cleanup_(block_signals_reset) _unused_ sigset_t _saved_sigset = ({ \ + sigset_t t; \ assert_se(sigprocmask_many(SIG_BLOCK, &t, __VA_ARGS__, -1) >= 0); \ - t; \ + t; \ }) |