From 1ffdad010bdfc63c03b7291a7b80331e8ee7219c Mon Sep 17 00:00:00 2001 From: isaacs Date: Sat, 12 Jun 2010 23:03:11 -0700 Subject: [PATCH] Expose the FD numbers for stdin and stderr on process.binding("stdio") --- src/node_stdio.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node_stdio.cc b/src/node_stdio.cc index 805de707c3..cf51556ff5 100644 --- a/src/node_stdio.cc +++ b/src/node_stdio.cc @@ -199,6 +199,8 @@ void Stdio::Initialize(v8::Handle 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);