summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-02-23 15:03:49 +0100
committerVito Caputo <vcaputo@pengaru.com>2024-02-23 18:35:12 +0100
commitdb7136ec739fa48a7767d77b2b2cfa633267a62a (patch)
tree566499311fb00de9b1a2e43c94996f88576d8821 /src/journal-remote
parentsignal-util: use RET_NERRNO() + RET_GATHER() more (diff)
downloadsystemd-db7136ec739fa48a7767d77b2b2cfa633267a62a.tar.xz
systemd-db7136ec739fa48a7767d77b2b2cfa633267a62a.zip
signal-util: imply sentinel -1 in sigprocmask_many() + sigset_add_many() args list
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-remote-main.c2
-rw-r--r--src/journal-remote/journal-upload.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c
index 6c09c068c8..7431403e4b 100644
--- a/src/journal-remote/journal-remote-main.c
+++ b/src/journal-remote/journal-remote-main.c
@@ -540,7 +540,7 @@ static int setup_signals(RemoteServer *s) {
assert(s);
- assert_se(sigprocmask_many(SIG_SETMASK, NULL, SIGINT, SIGTERM, -1) >= 0);
+ assert_se(sigprocmask_many(SIG_SETMASK, NULL, SIGINT, SIGTERM) >= 0);
r = sd_event_add_signal(s->events, &s->sigterm_event, SIGTERM, NULL, s);
if (r < 0)
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c
index 97b5f929ab..50fa31a133 100644
--- a/src/journal-remote/journal-upload.c
+++ b/src/journal-remote/journal-upload.c
@@ -397,7 +397,7 @@ static int setup_signals(Uploader *u) {
assert(u);
- assert_se(sigprocmask_many(SIG_SETMASK, NULL, SIGINT, SIGTERM, -1) >= 0);
+ assert_se(sigprocmask_many(SIG_SETMASK, NULL, SIGINT, SIGTERM) >= 0);
r = sd_event_add_signal(u->events, &u->sigterm_event, SIGTERM, dispatch_sigterm, u);
if (r < 0)