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

Handle more EPIPE situations #1765

Merged
merged 1 commit into from
Apr 16, 2019

Conversation

kinnison
Copy link
Contributor

In order to be easier for scripts to use us, until we define a
proper CLI API for that, handle EPIPE situations on all the list
type subcommands as well as the show subcommands.

Fixes #1730

Signed-off-by: Daniel Silverstone dsilvers@digital-scurf.org

In order to be easier for scripts to use us, until we define a
proper CLI API for that, handle EPIPE situations on all the list
type subcommands as well as the show subcommands.

Fixes rust-lang#1730

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
@kinnison kinnison added this to the 1.18.0 milestone Apr 14, 2019
@kinnison
Copy link
Contributor Author

Thanks for the review.

@kinnison kinnison merged commit 23a13d5 into rust-lang:master Apr 16, 2019
@kinnison kinnison deleted the kinnison/swallow-sigpipe-more branch April 16, 2019 08:02
fnichol added a commit to fnichol/workstation that referenced this pull request Apr 23, 2019
When checking for an installing plugins, there isn't a need to call
cargo for each plugin to check. While this is just-as-good as previous
behavior, it also limits any issues when calling a Cargo subcommand that
might fail.

Presently, there are times where a race exists and either `STDOUT` or
`STDERR` might disppear when Rustup (or potentially Cargo) is used in a
shell pipeline, leading to a program panic with `failed printing to
stdout: Broken pipe (os error 32)`. This change tries to minimize the
probability that this occurs until a more robust upstream fix has
landed.

References: rust-lang/rustup#1730
References: rust-lang/rustup#1765

Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
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.

rustup probabilistically panics with "Broken pipe" when used in a shell pipeline
2 participants