From e6cfb75f2f1a9b1b990df76bf97b070c9fc771d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wr=C3=B3bel?= Date: Sun, 20 Nov 2016 13:48:32 +0100 Subject: [PATCH] Don't call `sys.exit` in `atexit` callback Python is already shutting down. Calling `exit` again is an error. --- daemonize.py | 1 - 1 file changed, 1 deletion(-) diff --git a/daemonize.py b/daemonize.py index 92759b6..4cf5eae 100644 --- a/daemonize.py +++ b/daemonize.py @@ -69,7 +69,6 @@ def exit(self): """ self.logger.warn("Stopping daemon.") os.remove(self.pid) - sys.exit(0) def start(self): """