-
Notifications
You must be signed in to change notification settings - Fork 893
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
Ctrl+C on cargo run
#806
Comments
What is the status of the issue? |
What is the status of the issue? |
Yep, very much relevant still, I believe.
… On 26 Feb 2017, at 07:36, Alexey ***@***.***> wrote:
What is the status of the issue?
Is it still relevant?
I can work on it if it is relevant.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#806 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAEF3IAF4pILJTaMK_3mRdpQJeQynIjjks5rgSuNgaJpZM4Kv1e9>.
|
I am working on it. |
Some rationale here: #972 (comment) |
This is only possible when telemetry is disabled, but almost all of the time it is! This should help fix lots of common rustup-related issues related to signals and such. Closes rust-lang#806
This is only possible when telemetry is disabled, but almost all of the time it is! This should help fix lots of common rustup-related issues related to signals and such. Closes rust-lang#31 Closes rust-lang#806
This is only possible when telemetry is disabled, but almost all of the time it is! This should help fix lots of common rustup-related issues related to signals and such. Closes rust-lang#31 Closes rust-lang#806
This is only possible when telemetry is disabled, but almost all of the time it is! This should help fix lots of common rustup-related issues related to signals and such. Closes rust-lang#31 Closes rust-lang#806
This still happens on Windows. Steps to reproduce
Expected resultThe program should print Actual resultThe program terminates. Version info
I tried it without ( Cargo itself used to have this problem before (rust-lang/cargo#4575), but it was solved with this workaround: rust-lang/cargo#6004. |
@alexcrichton Do you have any idea of the complexity of resolving this for rustup? |
The Cargo solution looked like rust-lang/cargo#6004 for Windows, so based on that I'd guess it'd have a relatively small impact? |
Assuming #2014 builds OK, could @Vlad-Shcherbina or @alexreg please go to the PR, go through to the appveyor build, find the artifact, download a test copy of |
My apologies, it looks like the artifacts don't get collected, so you'll need to build a copy locally. |
In the scenario I described, #2014 appears to work as expected. |
When I Ctrl+C on cargo run and my Rust program is set up to intercept the signal, the Rustup process stops and returns control to the terminal, even though my Rust program (and indeed Cargo) may still be running. I've observed this on the latest version of Rustup.
I think it would be best for Rustup to do something similar to what
cargo run
does, and intercept Ctrl+C when running a program, and ignore it – instead, it should just check regularly to see if the program (cargo
) has exited.Note: this is confirmed not to be a
cargo
issue, as per rust-lang/cargo#3281.The text was updated successfully, but these errors were encountered: