[Twisted-Python] Problem: spawnProcess() never ending when installSignalHandlers=False
Itamar Shtull-Trauring
itamar at itamarst.org
Fri Jun 10 19:35:48 EDT 2005
> reactor.run(installSignalHandlers=False)
> -------------------------------------------------
>
> As is, this code never runs the "processEnded()" method of MyProt().
> If I change the reactor.run() parameter to leave the signal handlers
> on, it works.
>
> Note that I need to leave the signal handlers turned off because I
> can't run the reactor in the main thread; Webware needs that.
Register the same SIGCHLD handler twisted does in the main thread, that
should work (they need to be reentrancy-safe anyway so the fact it's
called from a different thread is fine). Possibly a more general
solution could be devised for this, anyone have suggestions?
More information about the Twisted-Python
mailing list