Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Volume 2

2004-10-28 by Matthias Scheler

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/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.