[FIX] long polling process: strip arguments

bzr revid: chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
This commit is contained in:
Christophe Simonis 2013-06-12 17:39:34 +02:00
parent a7bbb40404
commit 180e6e41d8
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ except ImportError:
import openerp
import openerp.tools.config as config
from openerp.tools.misc import stripped_sys_argv
_logger = logging.getLogger(__name__)
@ -91,7 +92,7 @@ class Multicorn(object):
sys.exit(0)
def long_polling_spawn(self):
nargs = [] + sys.argv
nargs = stripped_sys_argv('--pidfile')
cmd = nargs[0]
cmd = os.path.join(os.path.dirname(cmd), "openerp-long-polling")
nargs[0] = cmd