summaryrefslogtreecommitdiff
path: root/zuul/cmd/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'zuul/cmd/__init__.py')
-rwxr-xr-xzuul/cmd/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/zuul/cmd/__init__.py b/zuul/cmd/__init__.py
index 236fd9f44..bdb93978f 100755
--- a/zuul/cmd/__init__.py
+++ b/zuul/cmd/__init__.py
@@ -176,6 +176,10 @@ class ZuulDaemonApp(ZuulApp):
pid_fn = self.getPidFile()
pid = pid_file_module.TimeoutPIDLockFile(pid_fn, 10)
+ # Early register the stack dump handler for all zuul apps. This makes
+ # it possible to also gather stack dumps during startup hangs.
+ signal.signal(signal.SIGUSR2, stack_dump_handler)
+
if self.args.nodaemon:
self.run()
else: