From b95de102681344f3f3841101272da1c2b635cc7a Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 11 Nov 2021 18:13:06 -0300 Subject: [PATCH] [commons/system] more fixes related to some backend commands hanging --- bauh/commons/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bauh/commons/system.py b/bauh/commons/system.py index ad7715d2..3cbddbd8 100644 --- a/bauh/commons/system.py +++ b/bauh/commons/system.py @@ -295,7 +295,7 @@ def get_human_size_str(size) -> str: def run(cmd: List[str], success_code: int = 0) -> Tuple[bool, str]: - p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.DEVNULL) return p.returncode == success_code, p.stdout.decode()