mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 04:04:15 +02:00
[commons/system] more fixes related to some backend commands hanging
This commit is contained in:
@@ -243,12 +243,10 @@ def new_subprocess(cmd: List[str], cwd: str = '.', shell: bool = False, stdin =
|
||||
"stderr": PIPE,
|
||||
"cwd": cwd,
|
||||
"shell": shell,
|
||||
"env": gen_env(global_interpreter, lang, extra_paths)
|
||||
"env": gen_env(global_interpreter, lang, extra_paths),
|
||||
"stdin": stdin if stdin else subprocess.DEVNULL
|
||||
}
|
||||
|
||||
if input:
|
||||
args['stdin'] = stdin
|
||||
|
||||
return subprocess.Popen(cmd, **args)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user