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

Support #[unix_sigpipe = "inherit|sig_dfl"] on fn main() to prevent ignoring SIGPIPE #97802

Merged
merged 5 commits into from
Sep 2, 2022

Commits on Aug 28, 2022

  1. Support #[unix_sigpipe = "inherit|sig_dfl|sig_ign"] on fn main()

    This makes it possible to instruct libstd to never touch the signal
    handler for `SIGPIPE`, which makes programs pipeable by default (e.g.
    with `./your-program | head -n 1`) without `ErrorKind::BrokenPipe`
    errors.
    Enselic committed Aug 28, 2022
    Configuration menu
    Copy the full SHA
    ddee45e View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. unix_sigpipe: Skip some tests on android; libc has no signal function

    If we don't skip these tests, they will fail in CI when `python3 ../x.py
    --stage 2 test --host= --target arm-linux-androideabi` runs. The failure
    is:
    
        auxiliary/libsigpipe_utils.so: error: undefined reference to 'signal'
    Enselic committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    6eae169 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. Configuration menu
    Copy the full SHA
    236903f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3d1a4e4 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. Configuration menu
    Copy the full SHA
    3810d4a View commit details
    Browse the repository at this point in the history