[SERVER-24013] Fix kill_process logic to handle process names which contains regex special characters Created: 02/May/16  Updated: 16/May/16  Resolved: 06/May/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.3.6

Type: Bug Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-22856 Cleanup pkill logic in etc/evergreen.yml Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 14 (05/13/16)
Participants:
Linked BF Score: 0

 Description   

The full process name returned from "pgrep -f -l" can return a process which has a embedded regex expressions. Since the full process name is used by pkill, it can fail as these special characters are treated as a regex. It would be better to kill using the process id, via kill.



 Comments   
Comment by Githook User [ 06/May/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-24013 Fix kill_process logic to handle process names which contains regex special characters
Branch: master
https://github.com/mongodb/mongo/commit/9cb5a6e997c0b405bff5f87fe3409003972bf6ef

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