diff options
author | Fedor Indutny <fedor@indutny.com> | 2015-03-05 11:04:00 -0500 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2015-03-05 13:38:22 -0500 |
commit | 3446ff417ba1e11d35d1661b8788eac5af029360 (patch) | |
tree | 9e48f3d4ddecc8a0e243406c6b826a10b7611626 /src/stream_base.h | |
parent | 9d2b89d06c14f8e250e290668507c9daa8ec97ca (diff) | |
download | android-node-v8-3446ff417ba1e11d35d1661b8788eac5af029360.tar.gz android-node-v8-3446ff417ba1e11d35d1661b8788eac5af029360.tar.bz2 android-node-v8-3446ff417ba1e11d35d1661b8788eac5af029360.zip |
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/stream_base.h')
-rw-r--r-- | src/stream_base.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stream_base.h b/src/stream_base.h index dcbde09bac..5718f07ae1 100644 --- a/src/stream_base.h +++ b/src/stream_base.h @@ -160,7 +160,8 @@ class StreamBase : public StreamResource { public: enum Flags { kFlagNone = 0x0, - kFlagHasWritev = 0x1 + kFlagHasWritev = 0x1, + kFlagNoShutdown = 0x2 }; template <class Base> |