diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2017-09-29 00:37:23 +0200 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2017-10-02 13:09:54 +0200 |
commit | 3742095b27f8df4b195d530b52d15bc5fea70bf1 (patch) | |
tree | 3fc7c3503845b733f1d58366436c0bb672d3613a /src/basic/signal-util.c | |
parent | 01a65d4180446661732d90d23a24ab692d279295 (diff) | |
download | systemd-3742095b27f8df4b195d530b52d15bc5fea70bf1.tar.gz |
tree-wide: use IN_SET where possible
In addition to the changes from #6933 this handles cases that could be
matched with the included cocci file.
Diffstat (limited to 'src/basic/signal-util.c')
-rw-r--r-- | src/basic/signal-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/signal-util.c b/src/basic/signal-util.c index 280b5c3251..df6b742fde 100644 --- a/src/basic/signal-util.c +++ b/src/basic/signal-util.c @@ -38,7 +38,7 @@ int reset_all_signal_handlers(void) { for (sig = 1; sig < _NSIG; sig++) { /* These two cannot be caught... */ - if (sig == SIGKILL || sig == SIGSTOP) + if (IN_SET(sig, SIGKILL, SIGSTOP)) continue; /* On Linux the first two RT signals are reserved by |