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.master
parent
21e0d6e8b8
commit
e52319cc7d
Loading…
Reference in New Issue