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

Declaration for ProgramRegistry::portForPid() has wrong type

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.5.1
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL

    Description

      The type of the 'pid' argument for ProgramRegistry::portForPid() is incorrectly declared as 'int' (should be pid_t) in src/mongo/shell/shell_utils_launcher.h. Also, the argument name 'port' suggests the copy-and-paste error: should be 'pid'.

      src/mongo/shell/shell_utils_launcher.cpp line 75:

              int ProgramRegistry::portForPid(pid_t pid) const {

      src/mongo/shell/shell_utils_launcher.h line 76:

                  int portForPid( int port ) const;

      Attachments

        Activity

          People

            tad Tad Marshall
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: