[FIX] multicorn: terminate long-polling process via SIGKILL

bzr revid: chs@openerp.com-20130701153735-xnbb8zauabf1k63u
This commit is contained in:
Christophe Simonis
2013-07-01 17:37:35 +02:00
parent ac8dc26c65
commit 955eaca4fa
+1 -1
View File
@@ -196,7 +196,7 @@ class Multicorn(object):
def stop(self, graceful=True):
if self.long_polling_pid is not None:
self.worker_kill(self.long_polling_pid, signal.SIGTERM)
self.worker_kill(self.long_polling_pid, signal.SIGKILL) # FIXME make longpolling process handle SIGTERM correctly
self.long_polling_pid = None
if graceful:
_logger.info("Stopping gracefully")