Skip to content

Fixes eof detection with nightly. #40

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

Closed
wants to merge 1 commit into from
Closed

Conversation

gz
Copy link
Contributor

@gz gz commented Apr 18, 2022

Fixes #38

Err(PipeError::IO(ref err)) => {
// For an explanation of why we use `raw_os_error` see:
// https://github.com/zhiburt/ptyprocess/commit/df003c8e3ff326f7d17bc723bc7c27c50495bb62
self.eof = err.raw_os_error() == Some(5)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think this would be libc::EIO, which is a bit easier to read.

@matthiasbeyer
Copy link
Member

Everyone please wait until CI is fully setup before merging this, okay? 😆

@petreeftime
Copy link
Collaborator

bors try

bors bot added a commit that referenced this pull request Sep 12, 2022
@bors
Copy link
Contributor

bors bot commented Sep 12, 2022

try

Build failed:

@matthiasbeyer matthiasbeyer mentioned this pull request Sep 12, 2022
@matthiasbeyer
Copy link
Member

Included via #67

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.

PtySession::expect_eof never finishes with current nightly build
3 participants