[FIX] ensure the use the registry signaling for registries loaded with -d
bzr revid: al@openerp.com-20131013021322-5ej7ovpcrf7ilnn5
This commit is contained in:
parent
fb230b98e7
commit
d2eb959710
|
@ -168,6 +168,11 @@ def main(args):
|
||||||
import_translation()
|
import_translation()
|
||||||
sys.exit(0)
|
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
|
# preload registryies, needed for -u --stop_after_init
|
||||||
rc = 0
|
rc = 0
|
||||||
if config['db_name']:
|
if config['db_name']:
|
||||||
|
|
|
@ -828,7 +828,6 @@ def start():
|
||||||
global server
|
global server
|
||||||
load_server_wide_modules()
|
load_server_wide_modules()
|
||||||
if config['workers']:
|
if config['workers']:
|
||||||
openerp.multi_process = True
|
|
||||||
server = PreforkServer(openerp.service.wsgi_server.application)
|
server = PreforkServer(openerp.service.wsgi_server.application)
|
||||||
elif openerp.evented:
|
elif openerp.evented:
|
||||||
server = GeventServer(openerp.service.wsgi_server.application)
|
server = GeventServer(openerp.service.wsgi_server.application)
|
||||||
|
|
Loading…
Reference in New Issue