Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate file reading from Foundation #39

Open
Joannis opened this issue Jan 16, 2018 · 1 comment
Open

Separate file reading from Foundation #39

Joannis opened this issue Jan 16, 2018 · 1 comment
Milestone

Comments

@Joannis
Copy link
Contributor

Joannis commented Jan 16, 2018

File is dependent on Foundation file reading which is blocking and dependent on this line of code which as of today is known to cause infinite loops on 0 length files

@vzsg
Copy link
Member

vzsg commented Jan 16, 2018

Zero-byte files are not the issue, but reading virtual files (like procfs, sysfs) where stat returns an arbitrary file size (typ. 4096), but read can only read a few bytes before EOF. That Foundation function doesn't handle premature EOF at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants