uvms: do not hang on communicate()
This commit is contained in:
parent
a13e9c9393
commit
0692a20ae9
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ class Processes:
|
||||||
print(f"Releasing {args}")
|
print(f"Releasing {args}")
|
||||||
finally:
|
finally:
|
||||||
if subprocess.PIPE in (kwargs["stderr"], kwargs["stdout"]):
|
if subprocess.PIPE in (kwargs["stderr"], kwargs["stdout"]):
|
||||||
print(proc.communicate())
|
print(proc.communicate(timeout=0.125))
|
||||||
while alive_after(proc, 0.125):
|
while alive_after(proc, 0.125):
|
||||||
try:
|
try:
|
||||||
proc.terminate()
|
proc.terminate()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue