[Twisted-Python] handling SIGCHLD
jrennie at gmail.com
Tue Jun 8 13:25:41 EDT 2010
1. (as Itamar notes) use spawnProcess for all your process spawning needs
2. reactor.run(installSignalHandlers = False) and do your own signal
For option #2, you'll almost certainly want to install SIGTERM and SIGINT
handlers which call reactor.stop().
On Tue, Jun 8, 2010 at 12:36 PM, Michael P. Soulier <
msoulier at digitaltorque.ca> wrote:
> I have a twisted service that needs to fork child processes to do tasks,
> which they will exit. I wrote a signal handler for SIGCHLD but it didn't
> to be called. I read something about twisted installing its own signal
> handlers that may conflict. Is this true?
> How would you recommend handling a SIGCHLD in twisted?
> Many thanks,
> Michael P. Soulier <msoulier at digitaltorque.ca>
> "Any intelligent fool can make things bigger and more complex... It takes a
> touch of genius - and a lot of courage to move in the opposite direction."
> --Albert Einstein
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> -----END PGP SIGNATURE-----
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
Research Scientist, ITA Software
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python