Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix cheat hanging if the pager is quit before consuming all input
An easy test of this is with `cheat iana_port_list`. If less is quit immediately, cheat will hang forever due to the improperly closed pipe. But when the pipe is closed properly, it will get an Errno::EPIPE instead, so we have to handle both conditions.
- Loading branch information