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

Fix kill_process logic to handle process names which contains regex special characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.6
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      TIG 14 (05/13/16)
    • 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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: