--- freem/src/sighnd.c 2025/04/10 01:24:38 1.7 +++ freem/src/sighnd.c 2025/04/15 16:49:36 1.8 @@ -1,5 +1,5 @@ /* - * $Id: sighnd.c,v 1.7 2025/04/10 01:24:38 snw Exp $ + * $Id: sighnd.c,v 1.8 2025/04/15 16:49:36 snw Exp $ * FreeM signal handlers * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: sighnd.c,v $ + * Revision 1.8 2025/04/15 16:49:36 snw + * Make use of logprintf throughout codebase + * * Revision 1.7 2025/04/10 01:24:38 snw * Remove C++ style comments * @@ -79,10 +82,9 @@ #include "events.h" #include "jobtab.h" #include "shmmgr.h" +#include "log.h" - -void m_log (int, const char *); int pending_signal_type = -1; void sig_attach(int sig, void *handler) @@ -292,8 +294,7 @@ void onhup (void) if (run_daemon == TRUE) { - fprintf (stderr, "freem: daemon received SIGHUP\r\n"); - m_log (1, "freem: daemon received SIGHUP"); + logprintf (FM_LOG_INFO, "environment: daemon received SIGHUP\r\n"); sig_attach (SIGHUP, &onhup); /* restore handler */