fs: fix readFileSync("/proc/cpuinfo") regression
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 1 Aug 2012 18:25:24 +0000 (20:25 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 1 Aug 2012 18:30:40 +0000 (20:30 +0200)
commit23f09d7e024f326ea0466af10b97ad46e76ac5e6
tree4a6ed527be17c4a92a797966e07cbc4417b32dd0
parentfd56981b4c3a2de866f9cbeda09df0458d0f51b1
fs: fix readFileSync("/proc/cpuinfo") regression

Don't use positional reads. Not all proc files support pread(), especially on
older linux kernels.

Fixes #3808.
lib/fs.js