Fix spurious EOF error when select for reading from the tty fails with a temporary error

This commit is contained in:
Kovid Goyal 2022-11-16 22:30:58 +05:30
parent 86af1d5c16
commit fc20e8d04b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -86,9 +86,7 @@ func read_from_tty(pipe_r *os.File, term *tty.Term, results_channel chan<- []byt
break
}
if n == 0 {
err_channel <- io.EOF
keep_going = false
break
continue
}
send := buf[:n]
buf = buf[n:]