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
1 changed files with 16 additions and 9 deletions
Loading…
Reference in new issue