[Haskell-cafe] lockFile: fd out of range

Joel Reymont joelr1 at gmail.com
Thu Oct 27 10:17:45 EDT 2005


Actually, I think I was just hitting the top range of FD_SETSIZE,  
about 8000 on that machine.

Does FD_SETSIZE get hardcoded into ghc-built binaries? That is if I  
increase the available descriptors per process with uname -n, will it  
be taken into account?

     Thanks, Joel

On Oct 26, 2005, at 10:04 AM, Simon Marlow wrote:

> lockFile uses FD_SETSIZE as its idea of the maximum value of a file
> descriptor.  If you can get file descriptors outside this range, then
> the above error would ensue.  Not sure if this is the case on  
> FreeBSD...
> seems odd if it is.  Can you try a truss/ktrace and see the values of
> your file descriptors?

--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list