lkml.org 
[lkml]   [1999]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.028 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site