cheggaaa.pb: try to not open tty at init to see if it causes #7299
This commit is contained in:
parent
b32449cdcc
commit
4e55278839
|
@ -24,16 +24,16 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
echoLockMutex.Lock()
|
// echoLockMutex.Lock()
|
||||||
defer echoLockMutex.Unlock()
|
// defer echoLockMutex.Unlock()
|
||||||
|
|
||||||
var err error
|
// var err error
|
||||||
tty, err = os.Open("/dev/tty")
|
// tty, err = os.Open("/dev/tty")
|
||||||
istty = true
|
// istty = true
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
tty = os.Stdin
|
// tty = os.Stdin
|
||||||
istty = false
|
// istty = false
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// terminalWidth returns width of the terminal.
|
// terminalWidth returns width of the terminal.
|
||||||
|
|
Loading…
Reference in New Issue