Skip to content

use subordinate terminal device for termios calls #1290

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

Merged
merged 1 commit into from
Sep 6, 2020

Conversation

jclulow
Copy link
Contributor

@jclulow jclulow commented Aug 11, 2020

The pseudo-terminal device handling tests in some places make
tcgetattr(3C) and tcsetattr(3C) calls using the control/manager file
descriptor rather than the subordinate terminal descriptor. This works
on some systems, but not all; others such as illumos (and presumably
Solaris) are more strict and require the termios requests be made
against the terminal descriptor only.

The pseudo-terminal device handling tests in some places make
tcgetattr(3C) and tcsetattr(3C) calls using the control/manager file
descriptor rather than the subordinate terminal descriptor.  This works
on some systems, but not all; others such as illumos (and presumably
Solaris) are more strict and require the termios requests be made
against the terminal descriptor only.
@jclulow
Copy link
Contributor Author

jclulow commented Aug 11, 2020

In working on illumos support I hit this. I figured I'd stage it as a separate change to reduce the size of that eventual change.

This passes cargo test --all on my Linux system with stable Rust.

@asomers asomers requested a review from Susurrus August 17, 2020 23:29
@asomers
Copy link
Member

asomers commented Aug 17, 2020

@Susurrus could you review this? You're the termios expert.

@jclulow
Copy link
Contributor Author

jclulow commented Aug 26, 2020

Hi! Is there something I can do to help this along? Thanks.

@jclulow
Copy link
Contributor Author

jclulow commented Sep 3, 2020

Hello again. Is there something I can do to help this along? Thanks.

Copy link
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

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

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 6, 2020

Build succeeded:

@bors bors bot merged commit bf77f50 into nix-rust:master Sep 6, 2020
@jclulow
Copy link
Contributor Author

jclulow commented Sep 6, 2020

Thank you!

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.

2 participants