diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-02-23 15:03:49 +0100 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2024-02-23 18:35:12 +0100 |
commit | db7136ec739fa48a7767d77b2b2cfa633267a62a (patch) | |
tree | 566499311fb00de9b1a2e43c94996f88576d8821 /src/oom | |
parent | signal-util: use RET_NERRNO() + RET_GATHER() more (diff) | |
download | systemd-db7136ec739fa48a7767d77b2b2cfa633267a62a.tar.xz systemd-db7136ec739fa48a7767d77b2b2cfa633267a62a.zip |
signal-util: imply sentinel -1 in sigprocmask_many() + sigset_add_many() args list
Diffstat (limited to 'src/oom')
-rw-r--r-- | src/oom/oomd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oom/oomd.c b/src/oom/oomd.c index ecc2eda5dc..b43635d6d4 100644 --- a/src/oom/oomd.c +++ b/src/oom/oomd.c @@ -164,7 +164,7 @@ static int run(int argc, char *argv[]) { if (!FLAGS_SET(mask, CGROUP_MASK_MEMORY)) return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "Requires the cgroup memory controller."); - assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGTERM, SIGINT, -1) >= 0); + assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGTERM, SIGINT) >= 0); if (arg_mem_pressure_usec > 0 && arg_mem_pressure_usec < 1 * USEC_PER_SEC) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "DefaultMemoryPressureDurationSec= must be 0 or at least 1s"); |