[SERVER-9753] Declaration for ProgramRegistry::portForPid() has wrong type Created: 22/May/13  Updated: 11/Jul/16  Resolved: 29/May/13

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 2.5.1

Type: Bug Priority: Minor - P4
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 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;



 Comments   
Comment by auto [ 29/May/13 ]

Author:

{u'username': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-9753 Use pid_t type for pid argument in declaration
Branch: master
https://github.com/mongodb/mongo/commit/088557a3cf2b1ed0b6656e0fd9812ca5501e723b

Generated at Thu Feb 08 03:21:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.