Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created February 21, 2012 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/1879756 to your computer and use it in GitHub Desktop.
Save isaacs/1879756 to your computer and use it in GitHub Desktop.
diff --git a/src/node.js b/src/node.js
index ca5d39d..3eea4f1 100644
--- a/src/node.js
+++ b/src/node.js
@@ -324,6 +324,9 @@
// For supporting legacy API we put the FD here.
stdin.fd = fd;
+ // stdin should start out life in a paused state.
+ stdin.pause();
+
return stdin;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment