summaryrefslogtreecommitdiff
path: root/LEGACY
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2020-04-10 22:25:46 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-04-11 15:23:23 +0200
commite52319cc7d153e4f59b38c4fb4c0556e118d4775 (patch)
tree086acfcdc8c8d1e869a5920419b1760809272eb7 /LEGACY
parent21e0d6e8b8d20903494386e7e6f43201b3761154 (diff)
ttyread: test for EOF while reading tty
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.
Diffstat (limited to 'LEGACY')
0 files changed, 0 insertions, 0 deletions