-
Notifications
You must be signed in to change notification settings - Fork 402
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 #15
Comments
OK I see. I will try another way to process logs in future. |
Using async-signal-safe functions in log_handler instead of log_printf0(). |
I wonder a bit about the references to Redis in this update. I find two statements also inappropriate in your function "sighandler". |
Thanks very much. |
…fprintf() and exit() from sighandler().
Would you like to achieve a program termination there? |
Yes, the signal handler here just hooks termination signals. |
Thanks for your small source code improvement. |
The function "LOG_PRINT" does not belong to the list of async-signal-safe functions.
I guess that a different program design will be needed for your function "sighandler".
The text was updated successfully, but these errors were encountered: