[New-bugs-announce] [issue5115] Extend subprocess.kill to be able to kill process groups
report at bugs.python.org
Sat Jan 31 03:51:00 CET 2009
New submission from Erick Tryzelaar <idadesub at users.sourceforge.net>:
It would be really handy to add a way to portably kill process groups of
a process spawned with subprocess.Popen. My project starts a process,
which then starts other long running processes. Because of this process
tree, there's no way for me to portably kill all of those processes.
Would it be possible to extend subprocess with these features? I did
find someone who's already implemented this , and it's working well
in my project. There was some discussion about adding this, but it seems
no one actually committed a patch to implement it.
Anyway, I've attached a patch against python3.0's svn branch that
implements this. I don't have access to windows, so I'm not able to make
sure that the TerminateJobObject is correct, and works.
components: Library (Lib)
title: Extend subprocess.kill to be able to kill process groups
type: feature request
versions: Python 3.0
Added file: http://bugs.python.org/file12899/killpg.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce