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

Change sigprocmask in multi-threaded processes to pthread_sigmask to avoid undefined behaviour

XMLWordPrintable

    • Sprint 97 (Feb 2023)
    • 1

      "Note that you must not use sigprocmask in multi-threaded processes, because each thread has its own signal mask and there is no single process signal mask. According to POSIX, the behavior of sigprocmask in a multi-threaded process is “unspecified”. Instead, use pthread_sigmask."
      https://www.gnu.org/software/libc/manual/html_node/Process-Signal-Mask.html

      Currently server cannot be stopped on Mac OS, manager no longer receives signal due to usage of sigprocmask in startup logs.

            wiper Andris Zeila
            vso Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: