[Twisted-Python] Silencing PotentialZombieWarning

Jean-Paul Calderone exarkun at divmod.com
Thu Nov 6 07:44:24 MST 2008


On Thu, 6 Nov 2008 14:31:44 +0000, Reza Lotun <reza at getpeer.com> wrote:
>Hi All,
>
>I'm working on a multi-platform (win32 and os x) wx + Twisted app,
>where I've found the best solution is to run both in a separate thread
>- the main thread is wx, and the other is Twisted. It basically works
>like a charm (though I'd be interested in hearing about other
>approaches. I've also played with wxreactor way back, but didn't find
>it as stable).
>
>Because I spawn a few processes (using spawnProcess), and must run my
>reactor with installSignalHandlers=0, I get PotentialZombieWarning
>errors every time I spawn. Now, I handle reaping of my processes
>manually for various reasons, and also install my own signal handlers
>(in the main thread; I also pass clearSigInt=False to wx). Is there
>any way I can silence these warnings?

Sure.  See the Python documentation for warnings.filterwarnings.

Jean-Paul




More information about the Twisted-Python mailing list