Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken pipe on eopkg hs #31

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Fix broken pipe on eopkg hs #31

merged 1 commit into from
Jan 17, 2024

Conversation

sheepman4267
Copy link
Member

When less terminates, modern versions of subprocess close the pipe automatically. This results in a BrokenPipeError if less exits before the user reaches EOF.

This PR checks to see if the process is still running before trying to close the pipe, which stops the exception.

When `less` terminates, modern versions of subprocess close the pipe automatically. This results in a BrokenPipeError if `less` exits before the user reaches EOF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants