server: raise ulimit -n if possible, warn if very low
Alexandre Julliard
julliard at winehq.org
Fri Nov 5 05:13:08 CDT 2010
Dan Kegel <dank at kegel.com> writes:
> void sock_init(void)
> {
> + struct rlimit lim;
> +
> + if (!getrlimit(RLIMIT_NOFILE, &lim) && lim.rlim_cur < lim.rlim_max) {
> + lim.rlim_cur = lim.rlim_max;
> + setrlimit(RLIMIT_NOFILE, &lim);
> + }
This is already done in the Wine loader, there's no need to do it twice.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list