[SERVER-9809] Create platform-independent abstraction around process identifiers. Created: 29/May/13  Updated: 11/Jul/16  Resolved: 13/Jun/13

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

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Windows doesn't have a pid_t type, but uses DWORD. pid_t is signed, DWORD is unsigned. This leads to some risky casts around the codebase.



 Comments   
Comment by auto [ 11/Jun/13 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-9809 Fix FreeBSD process_info compilation after changing type of ProcessInfo::_pid to ProcessId.
Branch: master
https://github.com/mongodb/mongo/commit/ebf3a76940041bcfe8fbf84fd8b3f22b57ef3ecd

Comment by auto [ 03/Jun/13 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-9809 Replace getpid() with ProcessId::getCurrent() and pid_t with ProcessId.
Branch: master
https://github.com/mongodb/mongo/commit/9b148b0419d79f7173d0e972e8427fea67f77616

Comment by auto [ 03/Jun/13 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-9809 Introduce mongo-wide ProcessId type.
Branch: master
https://github.com/mongodb/mongo/commit/06c6c3b6fb835e1bcc62e5f725aca6d815cfb42e

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