[FIX] httpd thread must be a daemon threaded

bzr revid: chs@openerp.com-20140221215709-codb7b9r9n77ln7k
This commit is contained in:
Christophe Simonis 2014-02-21 22:57:09 +01:00
parent 013d27b850
commit 186bb97638
1 changed files with 3 additions and 1 deletions

View File

@ -263,7 +263,9 @@ class ThreadedServer(CommonServer):
self.httpd.serve_forever()
def http_spawn(self):
threading.Thread(target=self.http_thread).start()
t = threading.Thread(target=self.http_thread, name="openerp.service.httpd")
t.setDaemon(True)
t.start()
_logger.info('HTTP service (werkzeug) running on %s:%s', self.interface, self.port)
def start(self):