1
0
mirror of https://github.com/GuDaStudio/codexmcp.git synced 2026-02-05 02:00:24 +08:00
This commit is contained in:
GuDaStudio
2025-11-10 19:08:28 +08:00
parent 4f746a757b
commit 0dd6b957e4

View File

@@ -48,7 +48,7 @@ def run_shell_command(cmd: list[str]) -> Generator[str, None, None]:
process = subprocess.Popen( process = subprocess.Popen(
popen_cmd, popen_cmd,
shell=False, # Safer: no shell injection shell=False, # Safer: no shell injection
stdin=subprocess.DEVNULL, # Prevent process from waiting for input stdin=subprocess.PIPE, # Prevent process from waiting for input
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
universal_newlines=True, universal_newlines=True,