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

Declaration for ProgramRegistry::portForPid() has wrong type

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.1
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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;
      

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

              Created:
              Updated:
              Resolved: