diff options
author | Christopher Jeffrey <chjjeffrey@gmail.com> | 2012-02-02 00:44:22 -0600 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-02-04 22:14:58 +0100 |
commit | f64989e63b9cf11c88e46b422de6234fc4699039 (patch) | |
tree | fe2796da12b004f909d3eb98dd97d6248c561661 /lib | |
parent | 07a983a6025cf788df2e2371e96924ffe8602e08 (diff) | |
download | node-f64989e63b9cf11c88e46b422de6234fc4699039.tar.gz |
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().
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fs.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1050,6 +1050,7 @@ var ReadStream = fs.ReadStream = function(path, options) { } if (this.fd !== null) { + this._read(); return; } |