Skip to content

Commit

Permalink
Close watchpipe's stderr file descriptor
Browse files Browse the repository at this point in the history
Fixes #199
  • Loading branch information
exquo committed Oct 27, 2022
1 parent 3f60ded commit e65ece0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scli
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e65ece0

Please sign in to comment.