task-manager: spam select() without timeout

This commit is contained in:
Jörg Thalheim
2023-11-30 10:50:25 +01:00
parent ed472a6425
commit d34c44a45e

View File

@@ -68,7 +68,7 @@ class Command:
while self.p.poll() is None:
# Check if stderr is ready to be read from
rlist, _, _ = select.select([self.p.stderr, self.p.stdout], [], [], 0)
rlist, _, _ = select.select([self.p.stderr, self.p.stdout], [], [], 1)
for fd in rlist:
try:
for line in fd: