RE: [Twisted-Python] What is the "Twisted" way to kill stuck childprocess

Thank you, I just found the win32eventreactor code. Sorry to ask such a simple question,should I create a process protocol to use with the win32 reactor with spawnProcess? Thanks, Mike ---------------------------------------------------------------- Michael Schneider Senior Software Engineering Consultant UGS PLM Solutions - an EDS Company "The Greatest Performance Improvement Is the transitioning from a non-working state to the working state"
-----Original Message----- From: twisted-python-admin@twistedmatrix.com [mailto:twisted-python-admin@twistedmatrix.com]On Behalf Of Glyph Lefkowitz Sent: Thursday, February 12, 2004 10:21 PM To: twisted-python@twistedmatrix.com Subject: Re: [Twisted-Python] What is the "Twisted" way to kill stuck childprocess
On Thu, 2004-02-12 at 11:50, Jp Calderone wrote:
I'm not certain of the status of spawnProcess on Windows. If it really doesn't work, I suppose popen2 is about all you can do.
Since you're mainly developing on Windows, I doubt I can offer much more assistance, having never written any multiprocess Windows apps.
If popen2 lets you get PIDs on Windows, and os.kill() works with those PIDs on Windows, I think you should still be able to timeout processes fairly easily. If they don't, maybe someone with more Windows experience can chime in.
If you want to use spawnProcess on windows, you must use the win32 reactor. This has some limiting effects (but then, so does windows itself). Don't use popen2 with Twisted - the SIGCHLD handler that twistd installs will cause conflicts and crashes.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (1)
-
Schneider, Michael