-
Incident report
-
Resolution: Fixed
-
Major
-
2.0.13, 2.2.7, 2.4.2
-
Unix-like systems
src/libs/zbxsys/mutexs.c
The mutex operation (locking, unlocking) functions first check if the mutex is valid with following code:
if (ZBX_MUTEX_NULL == *mutex) return;
But on *nix like systems ZBX_MUTEX_NULL matches ZBX_MUTEX_LOG value (0). So the log mutex is never locked.
We should change ZBX_MUTEX_NULL to (-1) for *nix systems.