From a5c232ae0bacde3d4807bb4cc76dc67c58bbc83f Mon Sep 17 00:00:00 2001 From: Alex Domingo Date: Tue, 24 Dec 2024 01:03:20 +0100 Subject: [PATCH] attach /dev/null to STDIN on run_shell_cmd without input content --- easybuild/tools/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easybuild/tools/run.py b/easybuild/tools/run.py index 78051c9ff3..5bb5d863f4 100644 --- a/easybuild/tools/run.py +++ b/easybuild/tools/run.py @@ -496,7 +496,7 @@ def to_cmd_str(cmd): executable, shell = None, False stderr_handle = subprocess.PIPE if split_stderr else subprocess.STDOUT - stdin_handle = subprocess.PIPE if stdin or qa_patterns else None + stdin_handle = subprocess.PIPE if stdin or qa_patterns else subprocess.DEVNULL log_msg = f"Running {interactive_msg}shell command '{cmd_str}' in {work_dir}" if thread_id: