[Twisted-Python] What is the "Twisted" way to kill stuck childprocess
Schneider, Michael
michael.l.schneider at ugsplm.com
Thu Feb 12 21:16:39 MST 2004
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 at twistedmatrix.com
> [mailto:twisted-python-admin at twistedmatrix.com]On Behalf Of Glyph
> Lefkowitz
> Sent: Thursday, February 12, 2004 10:21 PM
> To: twisted-python at 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 at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
More information about the Twisted-Python
mailing list