-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
#3281
Comments
I believe this was fixed by #2818, so I'm curious, which version of Cargo were you running? |
The very latest. rustc 1.14.0-nightly (cae6ab1c4 2016-11-05)
|
Oh are you using rustup? If so then that's the same wrapper problem so this'd actually be a rustup bug at that point. |
Ah, fair point. Sorry about that. Do you know if it's already been reported for Rustup? Sent from my iPhone
|
AFAIK no |
When I Ctrl+C on
cargo run
and my Rust program is set up to intercept the signal, the Cargo process stops and returns control to the terminal, even though my Rust program may still be running. I've observed this on latest nightly.I think it would be best for
cargo run
to also intercept Ctrl+C when running a program, and ignore it – instead, it should just check regularly to see if the program it's running has exited. This would certainly be a more reliable approach.The text was updated successfully, but these errors were encountered: