From e17844c946879cdc3d4569da8a1e52ebeb8f8963 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Tue, 9 Jun 2015 10:06:55 +0200 Subject: [PATCH] [FIX] server: graceful shutdown must send SIGINT instead of SIGTERM to workers Workers do not specifically handle SIGTERM so it can be used to force quit them, but the graceful shutdown is triggered by SIGINT. Closes #6998 --- openerp/service/workers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/service/workers.py b/openerp/service/workers.py index db64b626245..9264ef12996 100644 --- a/openerp/service/workers.py +++ b/openerp/service/workers.py @@ -184,7 +184,7 @@ class Multicorn(object): _logger.info("Stopping gracefully") limit = time.time() + self.timeout for pid in self.workers.keys(): - self.worker_kill(pid, signal.SIGTERM) + self.worker_kill(pid, signal.SIGINT) while self.workers and time.time() < limit: self.process_zombie() time.sleep(0.1)