Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[node] fix excessive process.stdin ref

  • Loading branch information...
commit 51600ae4a0d3ba0d45c44d7f3b6631b48c9f6840 1 parent 6b2091b
@indutny authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/tty.js
View
3  lib/tty.js
@@ -81,6 +81,9 @@ function ReadStream(fd) {
if (!stdinHandle) stdinHandle = this._handle;
this.on('newListener', onNewListener);
+
+ // TTY ReadStream should be paused by default
+ this.pause();
}
inherits(ReadStream, net.Socket);
Please sign in to comment.
Something went wrong with that request. Please try again.