Darwin uses a subtly different version of the setrlimit() syscall as
described in the COMPATIBILITY section of the macOS man page. The value
of the rlim_cur member has been adjusted accordingly for Darwin-based
systems.
Signed-off-by: Trent Huber
---
The previous version assumed OPEN_MAX was a
> On Jun 14, 2024, at 9:30 AM, Daniel P. Berrangé wrote:
>
> On Fri, Jun 14, 2024 at 01:14:22AM -0400, Trent Huber wrote:
>> Darwin (I'm running version 19.6.0) uses a subtly different version
>> of the setrlimit() syscall as described in the COMPATIBILITY section
&
Darwin (I'm running version 19.6.0) uses a subtly different version
of the setrlimit() syscall as described in the COMPATIBILITY section
of the macOS man page. I adjusted the way the rlim_cur member is set
to accommodate and which shouldn't affect any non-Darwin systems.
Signed-off