Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9002

Zabbix does not lock log file during logging

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 2.5.0
    • 2.0.13, 2.2.7, 2.4.2
    • Agent (G), Proxy (P), Server (S)
    • 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.

            Unassigned Unassigned
            wiper Andris Zeila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: