summaryrefslogtreecommitdiff
path: root/buildscripts/hang_analyzer.py
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2017-01-17 19:05:04 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2017-01-17 19:05:04 -0500
commitafd3c348e1ef81dcea51221cde13976ea6271cf7 (patch)
tree591e6e3f3597e2042f98f8dbdb667154dd34db4c /buildscripts/hang_analyzer.py
parent77f9f8c05e37a73a1195ef16185ed5c2ec5e7f6c (diff)
downloadmongo-afd3c348e1ef81dcea51221cde13976ea6271cf7.tar.gz
SERVER-27684 Remove hang_analyzer timeout
Diffstat (limited to 'buildscripts/hang_analyzer.py')
-rwxr-xr-xbuildscripts/hang_analyzer.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/buildscripts/hang_analyzer.py b/buildscripts/hang_analyzer.py
index fa45e259e59..3c7fb9de9b0 100755
--- a/buildscripts/hang_analyzer.py
+++ b/buildscripts/hang_analyzer.py
@@ -23,7 +23,6 @@ import signal
import subprocess
import sys
import tempfile
-import threading
import time
from distutils import spawn
from optparse import OptionParser
@@ -463,17 +462,6 @@ def signal_process(pid, signalnum):
print "Cannot send signal to a process on Windows"
-def timeout_protector():
- print "Script timeout has been hit, terminating"
- if sys.platform == "win32":
- # Have the process exit with code 9 when it terminates itself to closely match the exit code
- # of the process when it sends itself a SIGKILL.
- handle = win32process.GetCurrentProcess()
- win32process.TerminateProcess(handle, 9)
- else:
- os.kill(os.getpid(), signal.SIGKILL)
-
-
# Basic procedure
#
# 1. Get a list of interesting processes
@@ -521,10 +509,6 @@ def main():
sys.stderr.write("hang_analyzer.py: Unsupported platform: %s\n" % (sys.platform))
exit(1)
- # Make sure the script does not hang
- timer = threading.Timer(120, timeout_protector)
- timer.start()
-
processes_orig = ps.dump_processes()
# Find all running interesting processes by doing a substring match.
@@ -564,9 +548,6 @@ def main():
dbg.dump_info(process[0], process[1], sys.stdout, check_dump_quota(max_dump_size_bytes, dbg.get_dump_ext()))
- # Suspend the timer so we can exit cleanly
- timer.cancel()
-
sys.stdout.write("Done analyzing processes for hangs\n")
if __name__ == "__main__":