Skip to content

Commit 95a2872

Browse files
juangugitMongoDB Bot
authored andcommitted
SERVER-99693 Fix hang analyzer crash when process_ids is empty (#31423) (#31534)
GitOrigin-RevId: a8e84ef397340e12a2f80d3e5bcb2937ca437c55
1 parent 551dd35 commit 95a2872

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildscripts/resmokelib/hang_analyzer/hang_analyzer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ def _configure_processes(self):
185185
if self.options.debugger_output is None:
186186
self.options.debugger_output = ['stdout']
187187

188-
if self.options.process_ids is not None:
188+
# add != "" check to avoid empty process_ids
189+
if self.options.process_ids is not None and self.options.process_ids != "":
189190
# self.process_ids is an int list of PIDs
190191
self.process_ids = [int(pid) for pid in self.options.process_ids.split(',')]
191192

0 commit comments

Comments
 (0)