Skip to content

Commit

Permalink
Change to close reader when pipe between parent and child no longer e…
Browse files Browse the repository at this point in the history
…xist
  • Loading branch information
piotrmurach committed Apr 22, 2018
1 parent 2b5a131 commit a139ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tty/command/process_runner.rb
Expand Up @@ -178,7 +178,7 @@ def read_stream(stream, buffer)
rescue Errno::EAGAIN, Errno::EINTR
rescue Errno::EIO
# GNU/Linux `gets` raises when PTY slave is closed
rescue EOFError
rescue EOFError, Errno::EPIPE
readers.delete(reader)
reader.close
end
Expand Down

0 comments on commit a139ab6

Please sign in to comment.