diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-02-25 08:56:57 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-25 11:32:28 +0100 |
commit | 9c274488a9168f8284dc99882856ca79ce2aa132 (patch) | |
tree | 82f8a85d40d464998b08e9b0a8fb1c0719fa9f2e /src/login/logind.c | |
parent | 155d626bc6dbf87728bb343fd787f5daf942edf4 (diff) | |
download | systemd-9c274488a9168f8284dc99882856ca79ce2aa132.tar.gz |
signal-util: make -1 termination of ignore_signals() argument list unnecessary
Clean up ignore_signals() + default_signals() + sigaction_many() a bit:
make it unnecessary to explicitly terminate the signal list with -1.
Merge all three calls into a single function that is just called with
slightly different parameters. And eliminate an unnecessary extra
iteration in its inner for() loop.
No change in behaviour.
Diffstat (limited to 'src/login/logind.c')
-rw-r--r-- | src/login/logind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind.c b/src/login/logind.c index dac0bd2728..56235230cf 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -788,7 +788,7 @@ static int manager_connect_console(Manager *m) { "Not enough real-time signals available: %u-%u", SIGRTMIN, SIGRTMAX); - assert_se(ignore_signals(SIGRTMIN + 1, -1) >= 0); + assert_se(ignore_signals(SIGRTMIN + 1) >= 0); assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN, -1) >= 0); r = sd_event_add_signal(m->event, NULL, SIGRTMIN, manager_vt_switch, m); |