[Twisted-Python] handling SIGCHLD

Itamar Turner-Trauring itamar at itamarst.org
Tue Jun 8 13:12:04 EDT 2010

> Hi,
> I have a twisted service that needs to fork child processes to do tasks,
> after
> which they will exit. I wrote a signal handler for SIGCHLD but it didn't
> seem
> 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?

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.


More information about the Twisted-Python mailing list