-
Notifications
You must be signed in to change notification settings - Fork 7
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
Install SIGINT handler optionally and call old handler #10
Conversation
Add option in constructor to skip installing internal SIGINT handler. Add static method `restore_buffer_mode_for_stdin()` as alternative for signal handler. Add call for old signal handler if it was installed before constructing KeyboardHandler. Exiting from process in signal handler only if there are was not valid old signal handler. Signed-off-by: Michael Orlov <[email protected]>
75eb9b9
to
33f7c61
Compare
@ivanpauno Could you please review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have one question about compatibility with the windows implementation, otherwise lgtm
keyboard_handler/include/keyboard_handler/keyboard_handler_unix_impl.hpp
Show resolved
Hide resolved
Running CI |
@emersonknapp Could you please review/approve this PR. |
Add option in constructor to skip installing internal SIGINT handler.
Add static method
restore_buffer_mode_for_stdin()
as alternative for signal handler.Add call for old signal handler if it was installed before constructing KeyboardHandler.
Exiting from process in signal handler only if there was not valid old signal handler.