uvms: do not hang on communicate()

This commit is contained in:
Else Someone 2026-03-15 01:30:27 +02:00
parent a13e9c9393
commit 0692a20ae9

View file

@ -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()