Commit 77bbd1ca authored by Łukasz Nowak's avatar Łukasz Nowak

Just extend argument.

git-svn-id: 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d3adba79
......@@ -5,11 +5,9 @@ import subprocess
import time
def execute(args=None):
def execute(args):
"""Portable execution with process replacement"""
# Note: Candidate for slapos.lib.recipe
if args is None:
args = []
os.execv(args[0], args + sys.argv[1:])
child_pg = None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment