[Twisted-Python] Using reactor with multiple processes

Phil Mayers p.mayers at imperial.ac.uk
Thu Sep 17 07:07:34 EDT 2009

James Y Knight wrote:
> On Sep 16, 2009, at 12:33 PM, David Yoakley wrote:
>> Thanks Phil for the reference to ampoule.   We will look at that  
>> next.  We are still hoping to get the parent set up in such a way  
>> that whatever the forking :-) shared state is, it does not get  
>> established until after the children are spawed. I'll post back  
>> later with what we find.  Phil your thoughts on this would also be  
>> appreciated.
> It think it would be a nice for this to work. Importing (but not  
> running) twisted should ideally not cause strange side effects.

Well, doing:

from twisted.internet import reactor

...causes all kinds of code to be executed. I suspect that:


...is the problem, since this creates an FD pair and adds it to the 
reactor. I guess this should really be done during reactor.run()

More information about the Twisted-Python mailing list