check waitpid() return status

XMLWordPrintableJSON

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

      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
              Reporter:
              Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: