@ -175,10 +175,10 @@ process.openStdin = function () {
fd = binding.openStdin();
if (binding.isStdinBlocking()) {
stdin = new fs.ReadStream(null, {fd: fd});
} else {
stdin = new net.Stream(fd);
stdin.readable = true;
}
stdin.resume();
@ -69,7 +69,7 @@ static Handle<Value>
IsStdinBlocking (const Arguments& args)
{
HandleScope scope;
return scope.Close(Boolean::New(isatty(STDIN_FILENO)));
return scope.Close(Boolean::New(!isatty(STDIN_FILENO)));
static Handle<Value>