summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-10 17:23:17 +0200
committerDan McGee <dan@archlinux.org>2010-09-10 17:23:17 +0200
commitd6f29d503180054a3ee8af2beeebcd5da9115ec8 (patch)
tree6895881f6dde757832f48baabe520b99fc849bac /devel
parent2470fb92e9be7142d3c1a258b35e400cae478b36 (diff)
downloadarchweb-d6f29d503180054a3ee8af2beeebcd5da9115ec8.tar.gz
archweb-d6f29d503180054a3ee8af2beeebcd5da9115ec8.tar.xz
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')
-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 a56fe92..fb3c4a7 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)