main: remove unneeded use_shell parameter

This commit is contained in:
Roman Zeyde
2016-03-05 11:00:07 +02:00
parent 8a90a8cd84
commit 4384b93c19
3 changed files with 5 additions and 9 deletions

View File

@@ -131,7 +131,7 @@ def serve(handler, sock_path=None, timeout=UNIX_SOCKET_TIMEOUT):
quit_event.set()
def run_process(command, environ, use_shell=False):
def run_process(command, environ):
"""
Run the specified process and wait until it finishes.
@@ -141,7 +141,7 @@ def run_process(command, environ, use_shell=False):
env = dict(os.environ)
env.update(environ)
try:
p = subprocess.Popen(args=command, env=env, shell=use_shell)
p = subprocess.Popen(args=command, env=env)
except OSError as e:
raise OSError('cannot run %r: %s' % (command, e))
log.debug('subprocess %d is running', p.pid)