Herbert Xu <herbert@gondor.apana.org.au> wrote:
>
> The following patch will do just that.
Oops, forgot the patch.
-- Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- --- linux/fs/select.c.orig Sat Apr 22 05:53:45 2000 +++ linux/fs/select.c Tue May 9 13:35:24 2000 @@ -408,7 +408,7 @@ int nchunks, nleft; /* Do a sanity check on nfds ... */ - if (nfds > current->files->max_fds) + if (nfds > current->rlim[RLIMIT_NOFILE].rlim_cur) return -EINVAL; if (timeout) {- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:13 EST