sshagent: add a few fixes and assertions

This commit is contained in:
Roman Zeyde
2015-07-03 16:35:21 +03:00
parent 3057a3d7a9
commit a77f9edb4e
4 changed files with 7 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ def run_process(command, environ):
env = dict(os.environ)
env.update(environ)
try:
p = subprocess.Popen(args=command, env=env)
p = subprocess.Popen(args=command, env=env, shell=True)
except OSError as e:
raise OSError('cannot run %r: %s' % (command, e))
log.debug('subprocess %d is running', p.pid)