summaryrefslogtreecommitdiffstats
path: root/src/shared/pager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-02-25 08:56:57 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-25 11:32:28 +0100
commit9c274488a9168f8284dc99882856ca79ce2aa132 (patch)
tree82f8a85d40d464998b08e9b0a8fb1c0719fa9f2e /src/shared/pager.c
parentMerge pull request #18018 from bluca/mount_images_overlay (diff)
downloadsystemd-9c274488a9168f8284dc99882856ca79ce2aa132.tar.xz
systemd-9c274488a9168f8284dc99882856ca79ce2aa132.zip
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/shared/pager.c')
-rw-r--r--src/shared/pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/pager.c b/src/shared/pager.c
index f689d9f28f..d140c371c2 100644
--- a/src/shared/pager.c
+++ b/src/shared/pager.c
@@ -262,7 +262,7 @@ int pager_open(PagerFlags flags) {
if (r < 0)
return r;
if (r > 0)
- (void) ignore_signals(SIGINT, -1);
+ (void) ignore_signals(SIGINT);
return 1;
}