luvit / lit

Toolkit for developing, sharing, and running luvit/lua programs and libraries.
http://lit.luvit.io/
Apache License 2.0
245 stars 58 forks source link

coro-fs readFile fails on /proc files #259

Closed aiverson closed 5 years ago

aiverson commented 5 years ago

When using coro-fs on files in /proc, readFile incorrectly returns empty strings.

Using the luvit fs readFileSync and readFile functions works correctly and returns the correct contents, matching what is produced by cat.

Some files this bug can be reproduced on are /proc/stat, /proc/cgroups, /proc/modules, /proc/mounts