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

rustc: Use unix_sigpipe instead of rustc_driver::set_sigpipe_handler #102587

Merged
merged 1 commit into from
Oct 25, 2022

Commits on Oct 2, 2022

  1. rustc: Use unix_sigpipe instead of rustc_driver::set_sigpipe_handler

    This is the first (known) step towards starting to use `unix_sigpipe` in
    the wild. Eventually, `rustc_driver::set_sigpipe_handler` can be removed
    and all clients can use `unix_sigpipe` instead.
    
    For now we just start using `unix_sigpipe` in once place: `rustc`
    itself.
    
    It is easy to manually verify this change. If you remove
    `#[unix_sigpipe = "sig_dfl"]` and run `./x.py build` you will get an ICE
    when you do `./build/x86_64-unknown-linux-gnu/stage1/bin/rustc --help |
    false`. Add back `#[unix_sigpipe = "sig_dfl"]` and the ICE disappears
    again.
    Enselic committed Oct 2, 2022
    Configuration menu
    Copy the full SHA
    093b075 View commit details
    Browse the repository at this point in the history