[Mimedefang] MIMEDefang 2.48 is available
David F. Skoll
dfs at roaringpenguin.com
Wed Nov 3 12:09:21 EST 2004
On Wed, 3 Nov 2004, Chris Masters wrote:
> OK, just to be sure - It's safe to open descriptors on
> a per slave basis as long as it in filter_initialize,
> filter_begin, filter, filter_end?
Sure.
> It's not safe to open file descriptors in the main
> body (outside of the callback functions) of the perl
> filter because these are only called once and will get
> closed (by subsequent slaves calling close(2) post
> fork)?
Correct (for embedded perl, which everyone should be using anyway.)
> Equally it's also not safe to open file descriptors in
> the other pre-body filter callback functions (such as
> filter_sender) because it cannot be gauranteed that
> the same slave will process the body (in the same way
> global vars cannot be used in these)?
Well, you can open file descriptors in the pre-body callbacks as long
as you use them and close them in the same callback. However, if you
leave a file descriptor open in filter_sender, you can't predict who
will see it next.
Regards,
David.
More information about the MIMEDefang
mailing list