projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c56284
)
Fix opposite logic, which coincidentially works
author
Ryan Dahl
<ry@tinyclouds.org>
Fri, 21 May 2010 05:11:26 +0000
(22:11 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Fri, 21 May 2010 05:11:26 +0000
(22:11 -0700)
src/node.js
patch
|
blob
|
history
src/node_stdio.cc
patch
|
blob
|
history
diff --git
a/src/node.js
b/src/node.js
index
66523f5
..
a17ba6f
100644
(file)
--- a/
src/node.js
+++ b/
src/node.js
@@
-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;
- } else {
- stdin = new fs.ReadStream(null, {fd: fd});
}
stdin.resume();
diff --git
a/src/node_stdio.cc
b/src/node_stdio.cc
index
183a6ea
..
a68d302
100644
(file)
--- a/
src/node_stdio.cc
+++ b/
src/node_stdio.cc
@@
-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>