From 55873416a1ecbb58e01af6dc65c5443db565fb66 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 26 Mar 2017 14:44:04 -0700 Subject: [PATCH] control: raise KeyboardInterrupt to speed up forced shutdowns? --- coremods/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coremods/control.py b/coremods/control.py index 4925e0c..10f4f49 100644 --- a/coremods/control.py +++ b/coremods/control.py @@ -23,7 +23,7 @@ def _shutdown(irc=None): """Shuts down the Pylink daemon.""" global tried_shutdown if tried_shutdown: # We froze on shutdown last time, so immediately abort. - sys.exit(1) + raise KeyboardInterrupt("Forcing shutdown.") tried_shutdown = True