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

Make nix::sys::termios::Termios implement Sync and Copy. #1324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 11, 2020

  1. Make nix::sys::termios::Termios implement Sync and Copy.

    It's kind of tough that `Termios` doesn't implement `Sync`, because then you
    can't use them with the `signal_hook` crate's `register` function, or any other
    signal-handling wrapper that tries to be safe.
    
    This approach probably entails a bit more copying bits around, but I'd argue the
    convenience of `Sync` and `Copy` implementations is worth it.
    jimblandy committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    e0dab6a View commit details
    Browse the repository at this point in the history