Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(from:
e52319c
)
ttyread: test for EOF while reading tty
author
Roberto E. Vargas Caballero <
[email protected]
>
Fri, 10 Apr 2020 20:25:46 +0000
(22:25 +0200)
committer
Hiltjo Posthuma <
[email protected]
>
Sat, 11 Apr 2020 13:23:23 +0000
(15:23 +0200)
When a read operation returns 0 then it means that we arrived to the end of the
file, and new reads will return 0 unless you do some other operation such as
lseek(). This case happens with USB-232 adapters when they are unplugged.
No differences found