From 62c1c12fc3d720cf15bfcf0c762d55dd585f48c7 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 26 Jan 2017 21:58:39 +0200 Subject: Avoid timeouts if there actually is output --- cliapp/runcmd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cliapp/runcmd.py b/cliapp/runcmd.py index 32fb0e0..de6ecc2 100644 --- a/cliapp/runcmd.py +++ b/cliapp/runcmd.py @@ -242,6 +242,7 @@ def _run_pipeline(procs, feed_stdin, pipe_stdin, pipe_stdout, pipe_stderr, out.append(data_new) else: stdout_eof = True + timeout = False if procs[-1].stderr in r: data = procs[-1].stderr.read(io_size) @@ -252,6 +253,7 @@ def _run_pipeline(procs, feed_stdin, pipe_stdin, pipe_stdout, pipe_stderr, err.append(data_new) else: stderr_eof = True + timeout = False while not timeout and still_running(): for p in procs: -- cgit v1.2.1