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

Weird behavior with examples #3

Closed
dagit opened this issue Oct 3, 2015 · 0 comments · Fixed by #4
Closed

Weird behavior with examples #3

dagit opened this issue Oct 3, 2015 · 0 comments · Fixed by #4

Comments

@dagit
Copy link
Contributor

dagit commented Oct 3, 2015

I made a new project (cargo new --bin ctrlc_test), added ctrlc to my dependencies, and then copied the contents of simple.rs from this repo into my main.rs. Then I did a cargo build and ran the executable directly. It sits waiting for me to hit ctrl-c, but after I do that it prints "Hello world!" to the terminal until I kill it. This is on linux and using stable 1.3.0.

It seems like maybe once the handler is triggered it just runs forever?

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 a pull request may close this issue.

1 participant