Skip to content

Commit 1ffdad0

Browse files
isaacsry
authored andcommitted
Expose the FD numbers for stdin and stderr on process.binding("stdio")
1 parent d607276 commit 1ffdad0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/node_stdio.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ void Stdio::Initialize(v8::Handle<v8::Object> target) {
199199
}
200200

201201
target->Set(String::NewSymbol("stdoutFD"), Integer::New(STDOUT_FILENO));
202+
target->Set(String::NewSymbol("stderrFD"), Integer::New(STDERR_FILENO));
203+
target->Set(String::NewSymbol("stdinFD"), Integer::New(STDIN_FILENO));
202204

203205
NODE_SET_METHOD(target, "writeError", WriteError);
204206
NODE_SET_METHOD(target, "openStdin", OpenStdin);

0 commit comments

Comments
 (0)