On Mon, 1 Nov 2004, Chris Masters wrote:

>
> >     * embperl.c: Detect if user opens file >descriptors
> inside his/her filter. If so, log a loud >and nasty
> warning that such code should be >moved to
> filter_initialize.

> Why is it a problem to do this outside of
> filter_initialize?

Because after we fork a child, we close() all unneeded file
descriptors (see mimedefang-multiplexor.c, around line 2193.  This
will most likely close the file descriptor "out from under" Perl --
that is, Perl will think the descriptor is open, but the C code will
have closed it.

Regards,

David.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to