From e65ece04fbab2bbc79dce1724bc5b50d3888f8b3 Mon Sep 17 00:00:00 2001 From: exquo <62397152+exquo@users.noreply.github.com> Date: Sun, 23 Oct 2022 19:59:03 +0000 Subject: [PATCH] Close watchpipe's stderr file descriptor Fixes #199 --- scli | 1 + 1 file changed, 1 insertion(+) diff --git a/scli b/scli index 7076b5a..f68b447 100755 --- a/scli +++ b/scli @@ -525,6 +525,7 @@ class AsyncProc: proc.returncode = return_code # overwrite the 'wrapper' command return code (always 0) with the actual command return code proc.output = proc.stderr.read().rstrip('\n') # stderr stream is not seekable, so can be read only once + proc.stderr.close() if return_code != 0: logging.error(