summaryrefslogtreecommitdiff
path: root/src/tty_wrap.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-02-03 16:32:00 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2012-02-06 15:44:42 +0100
commit74a8215a8699f89ee4b82ca616a4eafa3b11203b (patch)
tree1f2c8a7c47eae80a043c4b3ccf7372f4e8c7e292 /src/tty_wrap.cc
parenta9723df1b76777899a3819839cb7e8f0e2efaef1 (diff)
downloadandroid-node-v8-74a8215a8699f89ee4b82ca616a4eafa3b11203b.tar.gz
android-node-v8-74a8215a8699f89ee4b82ca616a4eafa3b11203b.tar.bz2
android-node-v8-74a8215a8699f89ee4b82ca616a4eafa3b11203b.zip
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up times for worker processes, faster inter-worker communication, possibly a lower memory footprint) are not actual bottlenecks for most people and do not outweigh the potential stability issues and intrusive changes to the code base that first-class support for isolates requires. Hence, this commit backs out all isolates-related changes. Good bye, isolates. We hardly knew ye.
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r--src/tty_wrap.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc
index 31949011f3..486c2a70b4 100644
--- a/src/tty_wrap.cc
+++ b/src/tty_wrap.cc
@@ -21,7 +21,6 @@
#include <node.h>
#include <node_buffer.h>
-#include <node_vars.h>
#include <req_wrap.h>
#include <handle_wrap.h>
#include <stream_wrap.h>
@@ -125,7 +124,7 @@ class TTYWrap : StreamWrap {
int r = uv_tty_get_winsize(&wrap->handle_, &width, &height);
if (r) {
- SetErrno(uv_last_error(Loop()));
+ SetErrno(uv_last_error(uv_default_loop()));
return v8::Undefined();
}
@@ -144,7 +143,7 @@ class TTYWrap : StreamWrap {
int r = uv_tty_set_mode(&wrap->handle_, args[0]->IsTrue());
if (r) {
- SetErrno(uv_last_error(Loop()));
+ SetErrno(uv_last_error(uv_default_loop()));
}
return scope.Close(Integer::New(r));
@@ -170,7 +169,7 @@ class TTYWrap : StreamWrap {
TTYWrap(Handle<Object> object, int fd, bool readable)
: StreamWrap(object, (uv_stream_t*)&handle_) {
- uv_tty_init(Loop(), &handle_, fd, readable);
+ uv_tty_init(uv_default_loop(), &handle_, fd, readable);
}
uv_tty_t handle_;