sysdeps: Don't raise RLIMIT_NOFILE beyond OPEN_MAX on macOS
authorWilliam Earley <nitrous@sourt.in>
Sun, 27 Sep 2020 11:24:30 +0000 (12:24 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 17 Dec 2021 12:53:06 +0000 (12:53 +0000)
commit7dc84fd22b0134785bb5258df4e40456cfc12811
treea6d9153e6eb35363c8d4c5f0075231ae47b2b3ca
parent2c5c9a750dc55b06b86a9606b72f4c1b478a5f4c
sysdeps: Don't raise RLIMIT_NOFILE beyond OPEN_MAX on macOS

dbus-daemon fails to launch on macOS 10.5 and above because of a breaking
change in setrlimit, in which RLIM_INFINITY is no longer supported
for RLIMIT_NOFILE. Instead we must use OPEN_MAX.

Resolves: #309
(cherry picked from commit 691946dabcdd3e97787655d977a4da33fe56d433)
dbus/dbus-sysdeps-util-unix.c