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

Details

    • Incident report
    • Resolution: Fixed
    • Major
    • 2.5.0
    • 2.0.13, 2.2.7, 2.4.2
    • Agent (G), Proxy (P), Server (S)
    • Unix-like systems

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: