--- freem/src/log.c 2025/04/15 16:49:36 1.12 +++ freem/src/log.c 2025/05/14 12:22:04 1.14 @@ -1,5 +1,5 @@ /* - * $Id: log.c,v 1.12 2025/04/15 16:49:36 snw Exp $ + * $Id: log.c,v 1.14 2025/05/14 12:22:04 snw Exp $ * freem error logging * * @@ -24,6 +24,12 @@ * along with FreeM. If not, see . * * $Log: log.c,v $ + * Revision 1.14 2025/05/14 12:22:04 snw + * Further work on shared memory + * + * Revision 1.13 2025/04/16 17:36:12 snw + * Add FreeBSD shm cleanup script + * * Revision 1.12 2025/04/15 16:49:36 snw * Make use of logprintf throughout codebase * @@ -75,6 +81,7 @@ #include "log.h" /* for logging constants */ #include "init.h" /* for cleanup() */ #include "iniconf.h" /* for read_profile_string() */ +#include "shmmgr.h" /* for shm_exit() */ short log_threshold_file; short log_threshold_syslog; @@ -277,7 +284,7 @@ void m_log(int level, const char *msg) strftime (timeval, sizeof (timeval) - 1, "%F %T", logtime); fprintf (fp, "%s [LEVEL %s PID %ld]: %s\n", timeval, lvl, getpid (), msg); fclose (fp); - } + } } #if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__)