Skip to content

Commit

Permalink
close stdout and stderr pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-D-Lewis committed Jan 29, 2025
1 parent d1d2a91 commit b710d29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/_nebari/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ def process_streams(
outputs["stderr"].append(line_w_newline)
finally:
sel.close()
if process.stdout:
process.stdout.close()
if process.stderr:
process.stderr.close()

return outputs["stdout"], outputs["stderr"]

Expand Down

0 comments on commit b710d29

Please sign in to comment.