The function "[fprintf](https://github.com/znc/znc/blob/b2dcad5fd49e6c0d604de38c311db0e08ed061a7/src/Utils.cpp#L293)" does not belong to the list of [async-signal-safe functions](https://www.securecoding.cert.org/confluence/display/cplusplus/SIG30-CPP.+Call+only+asynchronous-safe+functions+within+signal+handlers).
I guess that a different program design will be needed for your function "[signalHandler](https://github.com/znc/znc/blob/b2dcad5fd49e6c0d604de38c311db0e08ed061a7/src/main.cpp#L84)".
## <bountysource-plugin>
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1331674-fix-signal-handler?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).
</bountysource-plugin>
<!-- github-sync-id:23152432 -->
Would you like to consider software design options like the following?
- [Self-pipe trick](http://cr.yp.to/docs/selfpipe.html)
- [sigwaitinfo()](http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigwaitinfo.html)
- [Signal-safe locks](http://locklessinc.com/articles/signalsafe_locks/)
<!-- github-comment-id:29131296 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The function "fprintf" does not belong to the list of async-signal-safe functions.
I guess that a different program design will be needed for your function "signalHandler".
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Would you like to consider software design options like the following?
You're overcomplicating things...
Removing
fprintffrom it is enough.