mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 12:28:41 +00:00
Merge pull request #256 from scorphus/psutil-children
fix(main.wait_output): use Process’ children() instead of get_children()
This commit is contained in:
commit
b033d3893b
@ -62,7 +62,7 @@ def wait_output(settings, popen):
|
|||||||
proc.wait(settings.wait_command)
|
proc.wait(settings.wait_command)
|
||||||
return True
|
return True
|
||||||
except TimeoutExpired:
|
except TimeoutExpired:
|
||||||
for child in proc.get_children(recursive=True):
|
for child in proc.children(recursive=True):
|
||||||
child.kill()
|
child.kill()
|
||||||
proc.kill()
|
proc.kill()
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user