From c844d733bedf6505b1e34f91305db31237905944 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Tue, 7 Apr 2015 10:39:27 +0200 Subject: [PATCH] FIXME comment for HTTP server shutdown. --- src/scriptform.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scriptform.py b/src/scriptform.py index 18e3a59..cdec22c 100755 --- a/src/scriptform.py +++ b/src/scriptform.py @@ -225,6 +225,10 @@ class ScriptForm: def shutdown(self): self.log.info("Attempting server shutdown") self.log.info(self.websrv) + # FIXME: This is not the cleanest way to exit. shutdown() is called by + # the atexit and signal handler. Ideally, we should call + # self.httpd.shutdown(), but that doesn't work because we're in the + # same thread. raise SystemExit() class FormConfig: