[SERVER-63022] ProgramRegistry::waitForPid doesn't correctly handle waitforpid return values Created: 26/Jan/22  Updated: 29/Oct/23  Resolved: 02/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Bug Priority: Major - P3
Reporter: Richard Samuels (Inactive) Assignee: Richard Samuels (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: STM 2022-02-07
Participants:
Linked BF Score: 15
Story Points: 0

 Description   

waitforpid can return -1 if it's run against a process that's already be waited on. Fix that by not running unregisterProgram when the return value is -1.



 Comments   
Comment by Githook User [ 02/Feb/22 ]

Author:

{'name': 'Richard Samuels', 'email': 'richard.l.samuels@gmail.com', 'username': 'richardsamuels'}

Message: SERVER-63022 unregisterProgram shouldn't fail if called multiple times on the same pid
Branch: master
https://github.com/mongodb/mongo/commit/fba60cb9683ea1a8e9956e9d3edb6485718de9ae

Generated at Thu Feb 08 05:56:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.