Skip to content
Snippets Groups Projects
Commit 5ec2748e authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] services: call os.abort() for killing

bzr revid: chs@openerp.com-20121130104505-1p2arb61jnnogeb9
parent 25bd671e
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ def start_services_workers():
def _reexec():
"""reexecute openerp-server process with (nearly) the same arguments"""
if openerp.tools.osutil.is_running_as_nt_service():
os._exit(1)
os.abort()
strip_args = ['-d', '-u']
a = sys.argv[:]
args = [x for i, x in enumerate(a) if x not in strip_args and a[max(i - 1, 0)] not in strip_args]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment