Commit 62576a90 authored by Johan Ström's avatar Johan Ström

python: faulthandler support

if faulthandler is available, enable it and also bind SIGINFO, usually sent with Ctrl-T
parent d84d4b7e
......@@ -11,6 +11,11 @@ import sys
from agoclient.agoconnection import AgoConnection
from logging.handlers import SysLogHandler
try:
import faulthandler
except:
faulthandler = None
__all__ = ["AgoApp"]
agoclient._logging.init()
......@@ -301,6 +306,11 @@ class AgoApp:
OS Exit code
"""
if faulthandler:
faulthandler.enable()
faulthandler.register(signal.SIGINFO)
if not self.parse_command_line(argv):
return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment