[FIX] multicorn: terminate long-polling process via SIGKILL
bzr revid: chs@openerp.com-20130701153735-xnbb8zauabf1k63u
This commit is contained in:
parent
ac8dc26c65
commit
955eaca4fa
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue