[common] fix: some backend commands could hang when require user interaction

This commit is contained in:
Vinicius Moreira
2021-11-05 14:48:53 -03:00
parent 75e16056c0
commit f0c29d4089
2 changed files with 3 additions and 3 deletions

View File

@@ -89,15 +89,13 @@ class SimpleProcess:
args = {
"stdout": subprocess.PIPE,
"stderr": subprocess.STDOUT,
"stdin": stdin if stdin else subprocess.DEVNULL,
"bufsize": -1,
"cwd": cwd,
"env": gen_env(global_interpreter, lang, extra_paths=extra_paths),
"shell": self.shell
}
if stdin:
args['stdin'] = stdin
return subprocess.Popen(args=[' '.join(cmd)] if self.shell else cmd, **args)