Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On some (all?) non-Linux systems, when select() returns pty master file descriptor as ready to read, subsequent read() returns 0 if the slave side fd has been closed, to indicate EOF. When this happens, break is the correct course of action to avoid a potentially hazardous loop. Fixes github issue #794
- Loading branch information