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

check waitpid() return status

    • Fully Compatible
    • ALL
    • Platforms 2017-10-23, Platforms 2017-11-13, Platforms 2017-12-04

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

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

              Created:
              Updated:
              Resolved: