Browse Source

Expose the FD numbers for stdin and stderr on process.binding("stdio")

v0.7.4-release
isaacs 15 years ago
committed by Ryan Dahl
parent
commit
1ffdad010b
  1. 2
      src/node_stdio.cc

2
src/node_stdio.cc

@ -199,6 +199,8 @@ void Stdio::Initialize(v8::Handle<v8::Object> target) {
} }
target->Set(String::NewSymbol("stdoutFD"), Integer::New(STDOUT_FILENO)); target->Set(String::NewSymbol("stdoutFD"), Integer::New(STDOUT_FILENO));
target->Set(String::NewSymbol("stderrFD"), Integer::New(STDERR_FILENO));
target->Set(String::NewSymbol("stdinFD"), Integer::New(STDIN_FILENO));
NODE_SET_METHOD(target, "writeError", WriteError); NODE_SET_METHOD(target, "writeError", WriteError);
NODE_SET_METHOD(target, "openStdin", OpenStdin); NODE_SET_METHOD(target, "openStdin", OpenStdin);

Loading…
Cancel
Save