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

Details

    • Team A
    • Sprint 97 (Feb 2023)
    • 1

    Description

      "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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: