[Mimedefang] MD unable to create spool directories

Clayton, Nik [IT] nik.clayton at citigroup.com
Tue Feb 25 11:13:00 EST 2003

> On Tue, 25 Feb 2003, Clayton, Nik [IT] wrote:
> >        The  fdopen() function may fail and not set errno if there
> >        are no free stdio streams.
> Ah; that makes sense now.  Rats!  That severely crimps MIMEDefang's
> style.  You probably only see it on very busy mail servers because the
> descriptors don't typically stay open for very long.

Yeah, that's what I figured.

> I may have to re-work mimedefang.c to use open() and write() rather
> than fdopen() and fwrite(), because the limits on file descriptors
> are a lot more reasonable than the limits on number of streams.

Yes.  It's also easier to adjust them on the fly.

I've taken a look through the code, and it doesn't look as though this
will be too tricky.  There are only a handful of places where fprintf()
and similar is used to do output formatting, and that can always be 
replaced by snprintf() and write().

> Thanks for digging this out!  I'll certainly look at ways around it.

No problem.

Of course, this also means that the -M / mutex hack can probably be
removed. . .

1        1         2         3         4         5         6         7    7
         0         0         0         0         0         0         0    5
                                                    -- The 75 column-ometer
Global Messaging,                 A: Top posting
120 Cheapside, x83331             Q: What's the most annoying e-mail habit?

More information about the MIMEDefang mailing list