udev: raise RLIMIT_NOFILE as high as we can
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Sep 2023 07:52:05 +0000 (09:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Sep 2023 11:01:02 +0000 (13:01 +0200)
commit1617424ce76d797d081dd6cb1082b954c4d2bf38
tree62bce3f46659b28c8675dc4f9ab28aafd61af0bd
parent7af33700e681ea68e51936793c592cae823b17d0
udev: raise RLIMIT_NOFILE as high as we can

We might need a lot of fds on large systems, hence raise RLIMIT_NOFILE
to what the service manager allows us, which is quite a lot these days.

udev already sets FORK_RLIMIT_NOFILE_SAFE when forking of chilren, thus
ensuring that forked off processes get their RLIMIT_NOFILE soft limit
reset to 1K for compat with crappy old select().

Replaces: #29298
Fixes: #28583
src/udev/udevd.c