mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
solaris kernel changes are not backwards compatible - how retarded. problem
pointed out by: Geoffrey Giesemann svn:r185
This commit is contained in:
parent
11a40d478e
commit
65644dfb80
10
epoll.c
10
epoll.c
@ -109,8 +109,14 @@ epoll_init(void)
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
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;
|
/*
|
||||||
|
* Solaris is somewhat retarded - it's important to drop
|
||||||
|
* backwards compatibility when making changes. So, don't
|
||||||
|
* dare to put rl.rlim_cur here.
|
||||||
|
*/
|
||||||
|
nfiles = rl.rlim_cur - 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Initalize the kernel queue */
|
/* Initalize the kernel queue */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user