From 8a6a2c93dad3d9f1f3b326a67f6c71b657903131 Mon Sep 17 00:00:00 2001 From: Jehandad Khan Date: Wed, 2 Oct 2024 15:20:40 +0000 Subject: [PATCH] ensure stdin is a tty --- build/rocm/ci_build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/rocm/ci_build b/build/rocm/ci_build index 3c051be8c027..9a2e9b19ec65 100755 --- a/build/rocm/ci_build +++ b/build/rocm/ci_build @@ -99,7 +99,7 @@ def dist_wheels( cmd.extend(mounts) - if os.isatty(sys.stdout.fileno()): + if os.isatty(sys.stdout.fileno()) and os.isatty(sys.stdin.fileno()): cmd.append("-it") # NOTE(mrodden): bazel times out without --init, probably blocking on a zombie PID