Messages in this thread | | | Date | Fri, 15 Jan 1999 09:23:46 +1300 | From | Chris Wedgwood <> | Subject | Re: File descriptors in 2.2, 'fixing' OPEN_MAX |
| |
On Wed, Jan 13, 1999 at 03:47:18PM -0500, Jordan Mendelson wrote:
> Ok, as far as I can tell, file descriptors in 2.2 (and later 2.1 > kernels) is set to 1024 maximum. However, 'include/linux/limits.h' > has OPEN_MAX set to 256. This will break a lot of programs which > use this to define their upper limit for file descriptors, > particularly Squid and some flavors of IRCD.
Current suqid configure scripts are broken -- I have a patch I've yet to submit to Duane to address this (and also to prefer poll when the number of FDs in essential unlimit as in the ac patches)
> Shouldn't this value be set to 1024... or maybe these programs should > test NR_OPEN instead?
Either way it's broken -- programs should test with getrlimit and use that over `guessing' with a variaty of preprocessor defined values.
-cw
- 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/
| |