From b5d5a67b2d50f5d97fd65eb459d73e4f027ea332 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Fri, 8 Jul 2016 22:40:49 +0200 Subject: [PATCH] In debug mode, display running thread at exit --- nemubot/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nemubot/__main__.py b/nemubot/__main__.py index 64e4c74..5a236f4 100644 --- a/nemubot/__main__.py +++ b/nemubot/__main__.py @@ -191,6 +191,8 @@ def main(): # Wait for consumers logger.info("Waiting for other threads shuts down...") + if args.debug: + sigusr1handler(0, None) sys.exit(0) if __name__ == "__main__":