From f013f15c8916a1e3a65a99f99a512fa51e440642 Mon Sep 17 00:00:00 2001 From: Jeroen Janssen Date: Wed, 31 Aug 2011 13:03:47 +0200 Subject: [PATCH] fix win32 uv loop breakage --- src/node_stdio_win32.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/node_stdio_win32.cc b/src/node_stdio_win32.cc index 489508cab01..53f6618a4e0 100644 --- a/src/node_stdio_win32.cc +++ b/src/node_stdio_win32.cc @@ -470,7 +470,7 @@ static void tty_watcher_start() { assert(tty_watcher_initialized); if (!tty_watcher_active) { tty_watcher_active = true; - uv_ref(); + uv_ref(uv_default_loop()); tty_watcher_arm(); } } @@ -479,7 +479,7 @@ static void tty_watcher_start() { static void tty_watcher_stop() { if (tty_watcher_active) { tty_watcher_active = false; - uv_unref(); + uv_unref(uv_default_loop()); tty_watcher_disarm(); } } @@ -661,8 +661,8 @@ static Handle StopTTYWatcher(const Arguments& args) { void Stdio::Initialize(v8::Handle target) { init_scancode_table(); - uv_async_init(&tty_avail_notifier, tty_poll); - uv_unref(); + uv_async_init(uv_default_loop(), &tty_avail_notifier, tty_poll); + uv_unref(uv_default_loop()); /* Set stdio streams to binary mode. */ _setmode(_fileno(stdin), _O_BINARY);