[Twisted-Python] handling SIGCHLD

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Tue Jun 8 11:48:55 MDT 2010


On 05:16 pm, msoulier at digitaltorque.ca wrote:
>On 08/06/10 Itamar Turner-Trauring said:
>>You should probably just use reactor.spawnProcess to fork processes: 
>>it
>>implements the process handling for you, and has its own SIGCHLD 
>>handler
>>that does the right thing, so you don't have to maintain your own.
>
>The problem is that I'm using the multiprocessing module right now.

Aside from switching from multiprocessing to spawnProcess (or Ampoule), 
you might want to take a look at

    http://stackoverflow.com/questions/1470850/twisted-network-client- 
with-multiprocessing-workers/1472271#1472271

Jean-Paul




More information about the Twisted-Python mailing list