Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3551

Replace use of strerror with thread-safe alternatives strerror_r / strerror_l.

    XMLWordPrintableJSON

Details

    • Mesosphere Sprint 22
    • 3

    Description

      strerror() is not required to be thread safe by POSIX and is listed as unsafe on Linux:

      http://pubs.opengroup.org/onlinepubs/9699919799/
      http://man7.org/linux/man-pages/man3/strerror.3.html

      I don't believe we've seen any issues reported due to this. We should replace occurrences of strerror accordingly, possibly offering a wrapper in stout to simplify callsites.

      Attachments

        Activity

          People

            bbannier Benjamin Bannier
            bmahler Benjamin Mahler
            Till Toenshoff Till Toenshoff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: