-
Notifications
You must be signed in to change notification settings - Fork 609
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
Fix signal handler #245
Comments
Thank you for reporting this. I suggest to instead register endwin so it is
|
This ensures that only asynchronous-safe functions are called within the signal handler. In addition, it cleans up tig's shutdown mechanism so that done_display (and endwin) is called via an atexit(3) handler.
Something like that. |
Thanks for your source code improvement. |
The functions "endwin" and "exit" do not belong to the list of async-signal-safe functions.
I guess that a different program design will be needed for your function "quit".
The text was updated successfully, but these errors were encountered: