mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[commons/system] more fixes related to some backend commands hanging
This commit is contained in:
@@ -295,7 +295,7 @@ def get_human_size_str(size) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def run(cmd: List[str], success_code: int = 0) -> Tuple[bool, 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()
|
return p.returncode == success_code, p.stdout.decode()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user