Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28836

check waitpid() return status

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 2017-10-23, Platforms 2017-11-13, Platforms 2017-12-04

      Description

      In initialize_server_global_state.cpp, there are two calls to waitpid() that do not check to see if it returned an error before looking at the returned process status. waitpid() can possibly return -1 and set errno to ECHILD, which would invalidate the process status. (These problems were flagged by Coverity.)

        Attachments

          Activity

            People

            Assignee:
            billy.donahue Billy Donahue
            Reporter:
            milkie Eric Milkie
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: