Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Expose the FD numbers for stdin and stderr on process.binding("stdio")
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs authored and ry committed Jun 14, 2010
1 parent d607276 commit 1ffdad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_stdio.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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("stderrFD"), Integer::New(STDERR_FILENO));
target->Set(String::NewSymbol("stdinFD"), Integer::New(STDIN_FILENO));

NODE_SET_METHOD(target, "writeError", WriteError);
NODE_SET_METHOD(target, "openStdin", OpenStdin);
Expand Down

0 comments on commit 1ffdad0

Please sign in to comment.