From d59909fb8c0510570865f9e126f69926d5006779 Mon Sep 17 00:00:00 2001 From: Carl Edquist Date: Thu, 6 Oct 2022 16:56:30 -0500 Subject: [PATCH] log: rename passPromptFd to more generic termFd as this duped copy now gets used for progress output, too. --- fs/log/redirect_stderr_unix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/log/redirect_stderr_unix.go b/fs/log/redirect_stderr_unix.go index 4737f25e7..0f026566a 100644 --- a/fs/log/redirect_stderr_unix.go +++ b/fs/log/redirect_stderr_unix.go @@ -15,11 +15,11 @@ import ( // redirectStderr to the file passed in func redirectStderr(f *os.File) { - passPromptFd, err := unix.Dup(int(os.Stderr.Fd())) + termFd, err := unix.Dup(int(os.Stderr.Fd())) if err != nil { log.Fatalf("Failed to duplicate stderr: %v", err) } - terminal.RawOut = os.NewFile(uintptr(passPromptFd), "passPrompt") + terminal.RawOut = os.NewFile(uintptr(termFd), "termOut") err = unix.Dup2(int(f.Fd()), int(os.Stderr.Fd())) if err != nil { log.Fatalf("Failed to redirect stderr to file: %v", err)