Two options:<div><ol><li>(as Itamar notes) use spawnProcess for all your process spawning needs</li><li>reactor.run(installSignalHandlers = False) and do your own signal handling</li></ol><div>For option #2, you&#39;ll almost certainly want to install SIGTERM and SIGINT handlers which call reactor.stop().</div>
<div><br></div><div>Jason</div><div><br></div><div class="gmail_quote">On Tue, Jun 8, 2010 at 12:36 PM, Michael P. Soulier <span dir="ltr">&lt;<a href="mailto:msoulier@digitaltorque.ca">msoulier@digitaltorque.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I have a twisted service that needs to fork child processes to do tasks, after<br>
which they will exit. I wrote a signal handler for SIGCHLD but it didn&#39;t seem<br>
to be called. I read something about twisted installing its own signal<br>
handlers that may conflict. Is this true?<br>
<br>
How would you recommend handling a SIGCHLD in twisted?<br>
<br>
Many thanks,<br>
Mike<br>
<font color="#888888">--<br>
Michael P. Soulier &lt;<a href="mailto:msoulier@digitaltorque.ca">msoulier@digitaltorque.ca</a>&gt;<br>
&quot;Any intelligent fool can make things bigger and more complex... It takes a<br>
touch of genius - and a lot of courage to move in the opposite direction.&quot;<br>
--Albert Einstein<br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
<br>
iEYEARECAAYFAkwOcYkACgkQKGqCc1vIvggbUACfY8xqgU2LLOrs0cfR7HngUqmc<br>
LOQAoKkur5+DK8lcZ+q6qWDtjqIpX3Ov<br>
=XM/4<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jason Rennie<br>Research Scientist, ITA Software<br>617-714-2645<br><a href="http://www.itasoftware.com/">http://www.itasoftware.com/</a><br><br>
</div>