Skip to content

Commit

Permalink
attach /dev/null to STDIN on run_shell_cmd without input content
Browse files Browse the repository at this point in the history
  • Loading branch information
lexming committed Dec 24, 2024
1 parent a5e0937 commit a5c232a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easybuild/tools/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a5c232a

Please sign in to comment.