Amount of FDs too low
|Target version:||Version 0.8.0|
When executing ryzom core client from Terminal.app, the number of FDs is limited to 256 which is not enough to let ryzom open all it's bnps.
#1 Updated by rti almost 3 years ago
#2 Updated by rti over 2 years ago
- Status changed from New to Resolved
- Target version changed from Version 0.9.0 to Version 0.8.0
Works fine using from Terminal.app or clicking the app bundle.
The code ace added long time ago fixed this :)
#ifdef NL_OS_MAC struct rlimit rlp, rlp2, rlp3; getrlimit(RLIMIT_NOFILE, &rlp); rlp2.rlim_cur = 1024; rlp2.rlim_max = rlp.rlim_max; setrlimit(RLIMIT_NOFILE, &rlp2); getrlimit(RLIMIT_NOFILE, &rlp3); nlinfo("rlimit before %d %d\n", rlp.rlim_cur, rlp.rlim_max); nlinfo("rlimit after %d %d\n", rlp3.rlim_cur, rlp3.rlim_max); #endif