summaryrefslogtreecommitdiff
path: root/src/tty_wrap.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-09-23 11:07:57 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-09-23 11:10:18 -0700
commit94bedc60f4ea429c9051422916014835374c51d5 (patch)
treeeea30f9fdb0e0c7b720b153d303c2f0b8a3c51ac /src/tty_wrap.cc
parent1e37efb08bbd1ebd82437b417329b6f8f1639fd0 (diff)
downloadandroid-node-v8-94bedc60f4ea429c9051422916014835374c51d5.tar.gz
android-node-v8-94bedc60f4ea429c9051422916014835374c51d5.tar.bz2
android-node-v8-94bedc60f4ea429c9051422916014835374c51d5.zip
Upgrade libuv to f20297f
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r--src/tty_wrap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index d195b27d3e..f78739808d 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -50,7 +50,7 @@ class TTYWrap : StreamWrap {
HandleScope scope;
int fd = args[0]->Int32Value();
assert(fd >= 0);
- return uv_is_tty(fd) ? v8::True() : v8::False();
+ return uv_guess_handle(fd) == UV_TTY ? v8::True() : v8::False();
}
static Handle<Value> New(const Arguments& args) {