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

scubainit: Restore the default SIGPIPE action #255

Merged
merged 1 commit into from
May 29, 2024

Conversation

JonathonReinhart
Copy link
Owner

Rust pre-main code may change the SIGPIPE disposition to ignore:

We could use the nightly compiler flag -Zon-broken-pipe=inherit to disable this behavior. Instead, we take the simpler route and restore the default disposition ourselves.

Fixes #254

Copy link

github-actions bot commented May 20, 2024

Test Results

    6 files      6 suites   2m 5s ⏱️
  178 tests   176 ✅  2 💤 0 ❌
1 068 runs  1 056 ✅ 12 💤 0 ❌

Results for commit 3ddfaf5.

♻️ This comment has been updated with latest results.

@JonathonReinhart JonathonReinhart force-pushed the 254-scubainit-SIGPIPE branch from bbd1ede to d405167 Compare May 20, 2024 02:49
@JonathonReinhart
Copy link
Owner Author

scubainit/src/main.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@haboustak haboustak left a comment

Choose a reason for hiding this comment

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

Tested and confirmed this resolves #254.

Rust pre-main code may change the SIGPIPE disposition to ignore:
* rust-lang/rust#62569
* rust-lang/rust#97889

We could use the nightly compiler flag -Zon-broken-pipe=inherit to
disable this behavior. Instead, we take the simpler route and restore
the default disposition ourselves.

Fixes #254
@JonathonReinhart JonathonReinhart force-pushed the 254-scubainit-SIGPIPE branch from e15af52 to 3ddfaf5 Compare May 29, 2024 02:50
@JonathonReinhart JonathonReinhart merged commit 12d7f09 into main May 29, 2024
12 checks passed
@JonathonReinhart JonathonReinhart deleted the 254-scubainit-SIGPIPE branch May 29, 2024 02:57
@JonathonReinhart
Copy link
Owner Author

This was just released in v2.13.1.

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.

scubainit ignores SIGPIPE
2 participants