mirror of https://github.com/nodejs/node.git
Expose the FD numbers for stdin and stderr on process.binding("stdio")
parent
d6072766ed
commit
1ffdad010b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue