Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Process.kill() to be able to kill process groups #93

Closed
giampaolo opened this issue May 23, 2014 · 1 comment
Closed

Extend Process.kill() to be able to kill process groups #93

giampaolo opened this issue May 23, 2014 · 1 comment

Comments

@giampaolo
Copy link
Owner

From g.rodola on June 09, 2010 20:48:00

As for subprocess proposal: http://bugs.python.org/issue5115

Original issue: http://code.google.com/p/psutil/issues/detail?id=93

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on June 17, 2010 13:49:40

Thinking back, a more generic "get_children" separate method would probable be better to solve this problem:

>>> p = psutil.Process(1024)
>>> for pid in p.get_children():
...      psutil.Process(pid).kill()
...
>>> p.kill()

Merging into issue 97 for now.

Status: Duplicate
Mergedinto: 97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant