Example #1
0
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     set_in_sighandler(True)
     try:
         safe_say(cry())
     finally:
         set_in_sighandler(False)
Example #2
0
 def cry_handler(*args):
     """Signal handler logging the stacktrace of all active threads."""
     set_in_sighandler(True)
     try:
         safe_say(cry())
     finally:
         set_in_sighandler(False)
Example #3
0
 def cry_handler(*args):
     """Signal handler logging the stacktrace of all active threads."""
     with in_sighandler():
         safe_say(cry())
Example #4
0
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     logger.error("\n" + cry())
Example #5
0
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     logger.error("\n" + cry())