Fix spurious EOF error when select for reading from the tty fails with a temporary error
This commit is contained in:
parent
86af1d5c16
commit
fc20e8d04b
@ -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:]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user