summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2017-03-24 18:45:23 -0400
committerEddie Louie <eddie.louie@mongodb.com>2017-04-28 13:26:46 -0400
commit4076fd87dcefc47302a40e0e9036d38688ce0d4e (patch)
tree0229e05815fd4b72e09b89da8be8a8e2bf1f1a0c
parent3c7c96c4f295c8988c1c2a0741a0166c64756483 (diff)
downloadmongo-4076fd87dcefc47302a40e0e9036d38688ce0d4e.tar.gz
SERVER-28479 Canonicalize process names to lowercase in hang analyzer.
(cherry picked from commit 39ebea7cc93e3da45d280d011992e6cdb3417433)
-rwxr-xr-xbuildscripts/hang_analyzer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildscripts/hang_analyzer.py b/buildscripts/hang_analyzer.py
index 2ba281da4da..d24272ce47e 100755
--- a/buildscripts/hang_analyzer.py
+++ b/buildscripts/hang_analyzer.py
@@ -626,6 +626,10 @@ def main():
all_processes = ps.dump_processes(root_logger)
+ # Canonicalize the process names to lowercase to handle cases where the name of the Python
+ # process is /System/Library/.../Python on OS X and -p python is specified to hang_analyzer.py.
+ all_processes = [(pid, process_name.lower()) for (pid, process_name) in all_processes]
+
# Find all running interesting processes:
# If a list of process_ids is supplied, match on that.
# Otherwise, do a substring match on interesting_processes.