[Mimedefang] Multiplexor and reentrancy

David F. Skoll dfs at roaringpenguin.com
Fri Feb 15 16:10:46 EST 2002


On Fri, 15 Feb 2002, Michael D. Sofka wrote:

> But,
> be warned, razor is not reentrant.  That means you cannot run it with
> the multiplexor.

Actually, you can (unless it is _very_ weirdly written.)  The multiplexor
performs all the magical process-pool-management so that individual
filters do NOT have to be reentrant or thread-safe.  The only time issues
arise is for deliberately-shared resources like a database file, in which
case you must use locking to ensure exclusive access.

Within a given Perl process, the filter will _never_ be interrupted.  Your
filters do not have to be reentrant.

--
David.




More information about the MIMEDefang mailing list