17 Sep
2025
17 Sep
'25
8:57 a.m.
Alfred Agrell (@Alcaro) commented about server/main.c:
exit(1); /* make sure atexit functions get called */ }
+#ifdef RLIMIT_NOFILE +static void set_max_limit( int limit ) +{ + struct rlimit rlimit; + + if (!getrlimit( limit, &rlimit )) + { + rlimit.rlim_cur = rlimit.rlim_max; + if (!setrlimit( limit, &rlimit )) return; + +#if defined(__APPLE__) && defined(RLIMIT_NOFILE) && defined(OPEN_MAX)
RLIMIT_NOFILE is already checked on line 221. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8983#note_116055