On Fri, 23 Jul 2004 09:23:58 -0500, Josh Close <narshe at gmail.com> wrote:
> The only reason I'm using pipes in the first place is because
> dnspython isn't thread safe.

Take a look at Twisted.  It is entirely non-blocking.  (I don't know
what exactly you are using dnspython for, so I can't say for sure
whether or not Twisted supports it.)

http://www.twistedmatrix.com/

> I don't know of another way to fork a
> process and have the child return a value.

For DNS, you responses will likely all be under 512 bytes, so you
could take advantage of PIPE_BUF sized atomic writes.

-- 
David Phillips <david at acz.org>
http://david.acz.org/

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
Help beta test TCLUG's potential new home: http://plone.mn-linux.org
Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery
tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list