COmment out logging in signal handlers. Logging is too complex.

This commit is contained in:
Isaac Connor 2018-12-14 08:39:55 -05:00
parent dd033cb069
commit 70388753ea
1 changed files with 4 additions and 2 deletions

View File

@ -31,13 +31,15 @@ bool zm_terminate = false;
RETSIGTYPE zm_hup_handler(int signal)
{
Info("Got signal %d (%s), reloading", signal, strsignal(signal));
// Shouldn't do complex things in signal handlers, logging is complex and can block due to mutexes.
//Info("Got signal %d (%s), reloading", signal, strsignal(signal));
zm_reload = true;
}
RETSIGTYPE zm_term_handler(int signal)
{
Info("Got signal %d (%s), exiting", signal, strsignal(signal));
// Shouldn't do complex things in signal handlers, logging is complex and can block due to mutexes.
//Info("Got signal %d (%s), exiting", signal, strsignal(signal));
zm_terminate = true;
}