]> git.ipfire.org Git - thirdparty/systemd.git/commit
rlimit-util: don't call setrlimit() needlessly if it wouldn't change anything
authorLennart Poettering <lennart@poettering.net>
Tue, 2 Oct 2018 06:41:03 +0000 (08:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Oct 2018 14:33:55 +0000 (16:33 +0200)
commit0bbee2c226788ff12d8fa41b5392ad2ceae4d0e0
treee4394a9f2622054a2750abfa493acab1cd74d13c
parenta17c17122c304ff3f67f1cbf119fa7116315a7df
rlimit-util: don't call setrlimit() needlessly if it wouldn't change anything

Just a tiny tweak to avoid generating an error if there's no need to.
src/basic/rlimit-util.c