mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
need to report one less file descriptor to solaris then the limit; reported
by Dave Pacheco svn:r215
This commit is contained in:
parent
6813af3f11
commit
f0ecf50727
@ -142,7 +142,7 @@ devpoll_init(void)
|
|||||||
|
|
||||||
if (getrlimit(RLIMIT_NOFILE, &rl) == 0 &&
|
if (getrlimit(RLIMIT_NOFILE, &rl) == 0 &&
|
||||||
rl.rlim_cur != RLIM_INFINITY)
|
rl.rlim_cur != RLIM_INFINITY)
|
||||||
nfiles = rl.rlim_cur;
|
nfiles = rl.rlim_cur - 1;
|
||||||
|
|
||||||
/* Initialize the kernel queue */
|
/* Initialize the kernel queue */
|
||||||
if ((dpfd = open("/dev/poll", O_RDWR)) == -1) {
|
if ((dpfd = open("/dev/poll", O_RDWR)) == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user