On Thu, Oct 28, 2004 at 09:30:15AM +0200, Emmanuel Dreyfus wrote:
> So your OS was not able to open that file, but doesn't tell us why
> (errno says no error occured).
I couldn't open that file because you a passed file number larger than 255.
From Solaris's stdio(3C) manual page:
The integer constant FOPEN_MAX specifies the minimum number
of files that the implementation guarantees can be open
simultaneously. Note that no more than 255 files may be
opened using fopen(), and only file descriptors 0 through
255 can be used in a stream.
That historic restricion does however only apply to 32Bit binaries.
The work arround is to use dup2(3C) to get a small file descriptor
number. But it will of course be difficult to find one which is
not occupied.
BTW: I wonder why Milter Greylist has so many file descriptors open at the
same time. How many does it require to handle a single connection?
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/Message
Re: [milter-greylist] Volume 2
2004-10-28 by Matthias Scheler
Attachments
- No local attachments were found for this message.