diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-04-26 08:54:39 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-04-26 08:54:39 +0200 |
commit | c0a96b1b1d19a06a3828885b10a275c423a5e6f2 (patch) | |
tree | 9cd36369625c7e9c7caf2f019563a875dc33b0a4 /src/oom | |
parent | ee00684c50a47fd1b56edc3ea06da42e3848a2b1 (diff) | |
download | systemd-c0a96b1b1d19a06a3828885b10a275c423a5e6f2.tar.gz |
oomd: actually fail if configuration is bad
Follow-up for a858355e4a7168625ec1b9e5d17fdb6a11dfecb8.
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 603baada5a..28de6c5502 100644 --- a/src/oom/oomd.c +++ b/src/oom/oomd.c @@ -170,7 +170,7 @@ static int run(int argc, char *argv[]) { assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGTERM, SIGINT, -1) >= 0); if (arg_mem_pressure_usec > 0 && arg_mem_pressure_usec < 1 * USEC_PER_SEC) - log_error_errno(SYNTHETIC_ERRNO(EINVAL), "DefaultMemoryPressureDurationSec= must be 0 or at least 1s"); + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "DefaultMemoryPressureDurationSec= must be 0 or at least 1s"); r = manager_new(&m); if (r < 0) |