debug
Simon 3 years ago
parent 4064900d19
commit 3df3fd8c8d

@ -2901,6 +2901,7 @@ if __name__ == '__main__':
# Set up the signal handler
def sig_handler(_signal, _frame):
print("<<<<<<<<<<garbage",gc.garbage)
logger.info('(GLOBAL) SHUTDOWN: CONFBRIDGE IS TERMINATING WITH SIGNAL %s', str(_signal))
hblink_handler(_signal, _frame)
logger.info('(GLOBAL) SHUTDOWN: ALL SYSTEM HANDLERS EXECUTED - STOPPING REACTOR')
@ -2908,8 +2909,6 @@ if __name__ == '__main__':
if CONFIG['ALIASES']['SUB_MAP_FILE']:
subMapWrite()
print("<<<<<<<<<<garbage",gc.garbage)
# Set signal handers so that we can gracefully exit if need be
for sig in [signal.SIGINT, signal.SIGTERM]:
signal.signal(sig, sig_handler)

Loading…
Cancel
Save

Powered by TurnKey Linux.