projects
/
libevent
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6813af3
)
need to report one less file descriptor to solaris then the limit; reported
author
Niels Provos
<provos@gmail.com>
Sat, 15 Jul 2006 02:39:31 +0000
(
02:39
+0000)
committer
Niels Provos
<provos@gmail.com>
Sat, 15 Jul 2006 02:39:31 +0000
(
02:39
+0000)
by Dave Pacheco
svn:r215
devpoll.c
patch
|
blob
|
history
diff --git
a/devpoll.c
b/devpoll.c
index b4cdae27236298c30df5cf1869d283c670e5348f..6db53eaf6d06d038e5920c0551fd0007edf1e20f 100644
(file)
--- a/
devpoll.c
+++ b/
devpoll.c
@@
-142,7
+142,7
@@
devpoll_init(void)
if (getrlimit(RLIMIT_NOFILE, &rl) == 0 &&
rl.rlim_cur != RLIM_INFINITY)
- nfiles = rl.rlim_cur;
+ nfiles = rl.rlim_cur
- 1
;
/* Initialize the kernel queue */
if ((dpfd = open("/dev/poll", O_RDWR)) == -1) {