Graceful shutdown for modules and locale check for the server.

This commit is contained in:
grossmj
2014-04-24 15:59:34 -06:00
parent 9be5625c38
commit 7ebd451dda
4 changed files with 52 additions and 6 deletions

View File

@ -224,7 +224,8 @@ class Server(object):
# terminate all modules
for module in self._modules:
#module.join(timeout=1)
# if not sys.platform.startswith("win"):
# module.join(timeout=0.5)
if module.is_alive():
log.info("terminating {}".format(module.name))
module.terminate()