[Python-Dev] RE: how to kill process on Windows started with os.spawn?

Tim Peters tim.one@comcast.net
Tue, 03 Dec 2002 00:08:49 -0500


[Tim]
> Why do you need to kill a process externally?  For example, why
> can't you make "please stop now" a part of the protocol,
> so that a process can terminate itself gracefully when told to?

[Skip Montanaro]
> I start the background ssh process from within pop3proxy, so it
> seems to me I ought to be the one to terminate it.

OK, that wasn't clear to me before.

> As for protocol, I'm not aware of another way to terminate a running
> ssh other than to call kill(2) with a specified signal.  That's
> more-or-less the Unix way.  I don't have the luxury of modifying
> ssh to understand some application-specific protocol.

No, I'm not asking you to be silly <wink>.  The Unix signal model isn't
going to fly for you on Windows regardless.