Minimal VirtualBox integration.

This commit is contained in:
grossmj committed 2014-07-17 15:28:02 -06:00
1 parent 0ef727ce4b
commit 1fb4ab7e33
9 files changed
+1495 -97

No files matched your search

+6 -2
View File
@@ -173,8 +173,12 @@ class Server(object):
tornado.autoreload.add_reload_hook(self._reload_callback)
def signal_handler(signum=None, frame=None):
log.warning("Server got signal {}, exiting...".format(signum))
self._cleanup(signum)
try:
log.warning("Server got signal {}, exiting...".format(signum))
self._cleanup(signum)
except RuntimeError:
# to ignore logging exception: RuntimeError: reentrant call inside <_io.BufferedWriter name='<stderr>'>
pass
signals = [signal.SIGTERM, signal.SIGINT]
if not sys.platform.startswith("win"):