From 4e55278839a44da5057903d69f50dd6ab2862566 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 26 Feb 2019 11:55:39 +0100 Subject: [PATCH] cheggaaa.pb: try to not open tty at init to see if it causes #7299 --- vendor/github.com/cheggaaa/pb/pb_x.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/vendor/github.com/cheggaaa/pb/pb_x.go b/vendor/github.com/cheggaaa/pb/pb_x.go index 398345080..493854af4 100644 --- a/vendor/github.com/cheggaaa/pb/pb_x.go +++ b/vendor/github.com/cheggaaa/pb/pb_x.go @@ -24,16 +24,16 @@ var ( ) func init() { - echoLockMutex.Lock() - defer echoLockMutex.Unlock() + // echoLockMutex.Lock() + // defer echoLockMutex.Unlock() - var err error - tty, err = os.Open("/dev/tty") - istty = true - if err != nil { - tty = os.Stdin - istty = false - } + // var err error + // tty, err = os.Open("/dev/tty") + // istty = true + // if err != nil { + // tty = os.Stdin + // istty = false + // } } // terminalWidth returns width of the terminal.