summaryrefslogtreecommitdiff
path: root/devel/management
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-10 10:23:17 -0500
committerDan McGee <dan@archlinux.org>2010-09-10 10:23:17 -0500
commitd6f29d503180054a3ee8af2beeebcd5da9115ec8 (patch)
tree6895881f6dde757832f48baabe520b99fc849bac /devel/management
parent2470fb92e9be7142d3c1a258b35e400cae478b36 (diff)
reporead: allow traceback on USR1 signal as well
When I have caught reporead behaving badly on the production box, I haven't been able to successfully get a traceback without killing the process. Hopefully using a different signal will allow me to actually capture some data. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management')
-rw-r--r--devel/management/commands/reporead.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index a56fe929..fb3c4a75 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -76,8 +76,9 @@ class Command(BaseCommand):
logger.level = DEBUG
import signal, traceback
- signal.signal(signal.SIGQUIT,
- lambda sig, stack: traceback.print_stack(stack))
+ handler = lambda sig, stack: traceback.print_stack(stack)
+ signal.signal(signal.SIGQUIT, handler)
+ signal.signal(signal.SIGUSR1, handler)
return read_repo(arch, filename, options)