mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 04:44:15 +02:00
[common] fix: some backend commands could hang when require user interaction
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user