need to report one less file descriptor to solaris then the limit; reported

by Dave Pacheco


svn:r215
This commit is contained in:
Niels Provos 2006-07-15 02:39:31 +00:00
parent 6813af3f11
commit f0ecf50727

View File

@ -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) {