Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-03-05 19:04:00 +0300
committerFedor Indutny <fedor@indutny.com>2015-03-05 21:38:22 +0300
commit3446ff417ba1e11d35d1661b8788eac5af029360 (patch)
tree9e48f3d4ddecc8a0e243406c6b826a10b7611626 /src/tty_wrap.cc
parent9d2b89d06c14f8e250e290668507c9daa8ec97ca (diff)
tty: do not add `shutdown` method to handle
UV_TTY does not support `uv_shutdown()` so adding this method in StreamBase will cause an `abort()` in C land. Fix: https://github.com/iojs/io.js/issues/1068 PR-URL: https://github.com/iojs/io.js/pull/1073 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
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 186f2f01001..eaec2719375 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -39,7 +39,7 @@ void TTYWrap::Initialize(Handle<Object> target,
env->SetProtoMethod(t, "close", HandleWrap::Close);
env->SetProtoMethod(t, "unref", HandleWrap::Unref);
- StreamWrap::AddMethods(env, t);
+ StreamWrap::AddMethods(env, t, StreamBase::kFlagNoShutdown);
env->SetProtoMethod(t, "getWindowSize", TTYWrap::GetWindowSize);
env->SetProtoMethod(t, "setRawMode", SetRawMode);