diff options
author | Pierre Dubouilh <pldubouilh@gmail.com> | 2021-02-15 00:16:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-02-15 15:30:35 +0100 |
commit | 1edebb0b893e64ea9037e2fde3983c372e3c9005 (patch) | |
tree | e048a72432e8351976837a0804d8c14abe34114e /src | |
parent | Merge pull request #18580 from keszybz/signal-list (diff) | |
download | systemd-1edebb0b893e64ea9037e2fde3983c372e3c9005.tar.xz systemd-1edebb0b893e64ea9037e2fde3983c372e3c9005.zip |
rlimit-util: log when falling back setting limit
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/rlimit-util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/rlimit-util.c b/src/basic/rlimit-util.c index e01ffdb074..23d108d5df 100644 --- a/src/basic/rlimit-util.c +++ b/src/basic/rlimit-util.c @@ -43,6 +43,8 @@ int setrlimit_closest(int resource, const struct rlimit *rlim) { fixed.rlim_max == highest.rlim_max) return 0; + log_debug("Failed at setting rlimit " RLIM_FMT " for resource RLIMIT_%s. Will attempt setting value " RLIM_FMT " instead.", rlim->rlim_max, rlimit_to_string(resource), fixed.rlim_max); + if (setrlimit(resource, &fixed) < 0) return -errno; |