fs: fix ReadStream fails to read from existing fd
authorChristopher Jeffrey <chjjeffrey@gmail.com>
Thu, 2 Feb 2012 06:44:22 +0000 (00:44 -0600)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 4 Feb 2012 21:14:58 +0000 (22:14 +0100)
commitf64989e63b9cf11c88e46b422de6234fc4699039
treefe2796da12b004f909d3eb98dd97d6248c561661
parent07a983a6025cf788df2e2371e96924ffe8602e08
fs: fix ReadStream fails to read from existing fd

A ReadStream constructed from an existing file descriptor failed to start
reading automatically. Avoids a userspace call to ReadStream.prototype._read().
lib/fs.js
test/simple/test-fs-read-stream-fd.js [new file with mode: 0644]