Portably killing/signalling another process not supported?
nagle at animats.com
Sat Jan 26 18:28:04 CET 2008
There doesn't seem to be any way to portably kill another process
in Python. "os.kill" is Mac/Unix only. The "signal" module only lets
you send signals to the current process. And the "subprocess" module
doesn't have a "kill" function.
Subprocess objects really should have a portable "interrupt" or
"kill" function. They already have "poll" and "wait", which have
to be implemented differently for different systems; that's the
logical place for "kill".
Yes, there are nonportable workarounds
but no portable solution.
More information about the Python-list