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

Add signal handler for ctrl-c #31

Closed
wants to merge 2 commits into from

Conversation

AkshathaLaxmi
Copy link
Contributor

Added a signal handler for control-c (unix - SIGINT). Set the handler in the main.rs file as the set_handler should be only called once. The only way to ensure that would be to keep it in main.rs. Additionally, was causing some borrow errors when handler was set in ui.rs.

Closes #25

@AkshathaLaxmi
Copy link
Contributor Author

Will make PR for the same issue again. Currently doesn't work.

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 this pull request may close these issues.

Independent signal handler for Unix signals
1 participant