Skip to content

Instantly share code, notes, and snippets.

@blackdog66
Created January 29, 2010 02: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 blackdog66/289384 to your computer and use it in GitHub Desktop.
Save blackdog66/289384 to your computer and use it in GitHub Desktop.
If this is your Test.js
process.stdio.addListener("data",function(d) {
process.stdio.write(d);
});
process.stdio.open()
then why does
child = process.createChildProcess("node", ["Test.js"])
child.addListener("output",function(chunk) { sys.puts(chunk); });
child.write("blah");
child.write("\n");
require two writes?
node -v
v0.1.26-15-gb06dda1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment