Raise the file descriptor limit.

This commit is contained in:
JoelKatz
2013-07-15 14:59:27 -07:00
parent c8af7141f3
commit e1f3ce14c2

View File

@@ -15,7 +15,7 @@ void setupServer ()
if (rl.rlim_cur != rl.rlim_max)
{
rl.rlim_cur = rl.rlim_max;
setrlimit(RLIMIT_NOFILE, &r1);
setrlimit(RLIMIT_NOFILE, &rl);
}
}
#endif