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

Mesos containerizer helper function signalSafeWriteStatus is not AS-Safe

    XMLWordPrintableJSON

Details

    • Mesosphere Sprint 63
    • 3

    Description

      In src/slave/containerizer/mesos/launch.cpp a helper function signalSafeWriteStatus is defined. Its name seems to suggest that this function is safe to call in e.g., signal handlers, and it is used in this file's signalHandler for exactly that purpose.

      Currently this function is not AS-Safe since it e.g., allocates memory via construction of string instances, and might destructively modify errno.

      We should clean up this function to be in fact AS-Safe.

      Attachments

        Activity

          People

            abudnik Andrei Budnik
            bbannier Benjamin Bannier
            James Peach James Peach
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: