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

stopMongod may return while mongod process is still running

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL

      Quoting myself from some earlier emails - not sure if there have been any code changes since these emails:

      > I think the implementation is supposed to be synchronous, but it looks like on windows it might not be. Were you seeing async behavior on windows only?
      > In particular according to the GetExitCodeProcess doc it looks like GetExitCodeProcess may return true before the process has stopped.

      ...

      > Should be easy to fix by checking if the status returned by GetExitCodeProcess is STILL_ACTIVE or not and only returning true in wait_for_pid if it is not.
      > <http://msdn.microsoft.com/en-us/library/ms683189(v=vs.85).aspx>
      > I can try to fix if you want, but I don't have windows so will have to debug any failures by looking at buildbot.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: