Remove the FD_SETSIZE check.
This is a hold-over from using select() back in the past. It now uses libevent, so it no longer (itself) cares about the size of FD_SETSIZE.
This commit is contained in:
parent
5d500c3785
commit
ed5c6311ab
@ -689,13 +689,6 @@ core_init(void)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rlimit.rlim_max > FD_SETSIZE) {
|
|
||||||
fprintf(stderr, "%s: warning: open file limit > FD_SETSIZE; "
|
|
||||||
"limiting max. # of open files to FD_SETSIZE\n",
|
|
||||||
prog_name);
|
|
||||||
rlimit.rlim_max = FD_SETSIZE;
|
|
||||||
}
|
|
||||||
|
|
||||||
rlimit.rlim_cur = rlimit.rlim_max;
|
rlimit.rlim_cur = rlimit.rlim_max;
|
||||||
if (setrlimit(RLIMIT_NOFILE, &rlimit) < 0) {
|
if (setrlimit(RLIMIT_NOFILE, &rlimit) < 0) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
Loading…
Reference in New Issue
Block a user