Re: server: raise ulimit -n if possible, warn if very low
5 Nov
2010
5 Nov
'10
10:13 a.m.
Dan Kegel <dank(a)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(a)winehq.org
5519
Age (days ago)
5519
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard