-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
SIGINT can't terminate subprocess on OS X #3460
Comments
@cissusnar, add that it terminates by pressing CTRL+C. |
Thanks for the report! This is currently expected behavior, as Cargo doesn't proxy signals to the child. This has changed recently on Unix where Cargo will |
@alexcrichton, |
@KalitaAlexey On Unix (including OSX) Cargo will use the If you find it's not terminated on OSX, I'd verify that you've got a recent version of Cargo with that PR in it. Otherwise you'll need to use the old (and more reliable) strategy of sending signals to the process group, not individual processes. |
@alexcrichton, |
Yes that Cargo should include #2818. Are you using rustup perchance? If so you may be seeing rust-lang/rustup#806 |
I can't understand how a problem with |
Can you confirm whether rustup is being used? Rustup is a process wrapper that doesn't exec. The |
You mean |
@alexcrichton, |
@cissusnar, |
|
@cissusnar,
It should give you a path.
There should be cargo.
It should start running your project. |
I checked it on Linux. |
@cissusnar, |
'cargo run' process is terminated, but it's subprocess is still running.
CTRL+C can terminate cargo process and it's subprocess.
The text was updated successfully, but these errors were encountered: