task-manager: spam select() without timeout

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

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: