Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: When reading from procfs or other kernel fs, kernel may not always fill up the provided buffer even if there are more content to read from, because kernel does not want to break up lines. As a result, reading with partially filled buffer does not mean that there is no more data to read from. Only reading with zero byte should indicate end of file. Reviewed By: rikvanriel Differential Revision: D66511187 fbshipit-source-id: 90035c0e8497351caede715d44e5370d69e5ab43
- Loading branch information