-
Notifications
You must be signed in to change notification settings - Fork 696
impl io::{Read,Write} for PtyMaster #1210
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
Conversation
This change makes sense to me. However, please split that test method up. It's too big, and tests too much. I'm also going to request a review from @Susurrus because he's more knowledgeable about pseudoterminals than I am. |
I kept it together because the existing test code is all necessary setup to get a usable pair for my read/write tests. Even if I extracted that setup into some common function, the only difference from the current test would be the two asserts for |
My objection is that you're testing |
OK, I've now split that up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Now, could you please squash your commits?
I've rebased and squashed to one commit. I think CI isn't triggering with the current GitHub outages, but I'll check back in a while and re-push if that still hasn't gone anywhere... |
`PtyMaster` acts like an owned file descriptor, even closing on `Drop`. Implementing `io::Read` and `io::Write` lets it be used directly in standard I/O operations.
OK, CI is green now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
1210: impl io::{Read,Write} for PtyMaster r=asomers a=cuviper `PtyMaster` acts like an owned file descriptor, even closing on `Drop`. Implementing `io::Read` and `io::Write` lets it be used directly in standard I/O operations. Co-authored-by: Josh Stone <[email protected]>
Build failed: |
bors retry |
1210: impl io::{Read,Write} for PtyMaster r=asomers a=cuviper `PtyMaster` acts like an owned file descriptor, even closing on `Drop`. Implementing `io::Read` and `io::Write` lets it be used directly in standard I/O operations. Co-authored-by: Josh Stone <[email protected]>
Build failed: |
bors retry |
Build succeeded: |
PtyMaster
acts like an owned file descriptor, even closing onDrop
.Implementing
io::Read
andio::Write
lets it be used directly instandard I/O operations.