diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-10-10 13:30:10 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-10-10 13:33:45 -0700 |
commit | 7cf787a2d145ef118d983e4df693587a5c78f3ea (patch) | |
tree | 345c0bcdb72191a4226b70b0776430dad9d3fc9f /src/tty_wrap.cc | |
parent | 4f91b72dbe46460888ae45b3eef7707f4a9f1b36 (diff) | |
download | android-node-v8-7cf787a2d145ef118d983e4df693587a5c78f3ea.tar.gz android-node-v8-7cf787a2d145ef118d983e4df693587a5c78f3ea.tar.bz2 android-node-v8-7cf787a2d145ef118d983e4df693587a5c78f3ea.zip |
Upgrade libuv to 5656e3
This modifies the TTYWrap constructor to add another argument specifying if
it's a readable or writable TTY . That is stdin or stdout. If a TTYWrap is
not readable then writes to it are blocking.
This makes process.stdout blocking.
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r-- | src/tty_wrap.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc index 82ad7a80dc..eaa8cfdcd4 100644 --- a/src/tty_wrap.cc +++ b/src/tty_wrap.cc @@ -136,16 +136,16 @@ class TTYWrap : StreamWrap { int fd = args[0]->Int32Value(); assert(fd >= 0); - TTYWrap* wrap = new TTYWrap(args.This(), fd); + TTYWrap* wrap = new TTYWrap(args.This(), fd, args[1]->IsTrue()); assert(wrap); wrap->UpdateWriteQueueSize(); return scope.Close(args.This()); } - TTYWrap(Handle<Object> object, int fd) + TTYWrap(Handle<Object> object, int fd, bool readable) : StreamWrap(object, (uv_stream_t*)&handle_) { - uv_tty_init(uv_default_loop(), &handle_, fd); + uv_tty_init(uv_default_loop(), &handle_, fd, readable); } uv_tty_t handle_; |