[FIX] ensure the use the registry signaling for registries loaded with -d

bzr revid: al@openerp.com-20131013021322-5ej7ovpcrf7ilnn5
This commit is contained in:
Antony Lesuisse 2013-10-13 04:13:22 +02:00
parent fb230b98e7
commit d2eb959710
2 changed files with 5 additions and 1 deletions

View File

@ -168,6 +168,11 @@ def main(args):
import_translation()
sys.exit(0)
# This needs to be done now to ensure the use of the multiprocessing
# signaling mecanism for registries loaded with -d
if config['workers']:
openerp.multi_process = True
# preload registryies, needed for -u --stop_after_init
rc = 0
if config['db_name']:

View File

@ -828,7 +828,6 @@ def start():
global server
load_server_wide_modules()
if config['workers']:
openerp.multi_process = True
server = PreforkServer(openerp.service.wsgi_server.application)
elif openerp.evented:
server = GeventServer(openerp.service.wsgi_server.application)