Skip to content

Make it work inside cargo run #11

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

Closed
dns2utf8 opened this issue Sep 30, 2016 · 4 comments
Closed

Make it work inside cargo run #11

dns2utf8 opened this issue Sep 30, 2016 · 4 comments

Comments

@dns2utf8
Copy link

Thank you for the crate.
It currently works on the university system (currently win10) with cmd and powershell, while I use my program directly.
When I start it with cargo run the handler will not execute. Can I enable that?

@Detegr
Copy link
Owner

Detegr commented Sep 30, 2016

Hi, you're welcome :)
This is a known issue. Cargo overrides the ctrl-c handling and unfortunately currently I'm unaware how to prevent that from happening.

I have usually done (like in the README) a trick like cargo build && target/debug/your_executable. I guess something similar would work in Windows as well.

@dns2utf8
Copy link
Author

yes, I use a cmd script

@henninglive
Copy link
Contributor

This has been fixed and has landed in stable. Cargo now proxy signals to child process.

@Detegr
Copy link
Owner

Detegr commented May 24, 2017

Hooray! 🎉

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

No branches or pull requests

3 participants