Skip to content

Commit

Permalink
Upgrade libuv to 66a959c4052
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 15, 2012
1 parent f631c1d commit 571a519
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions deps/uv/src/unix/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,16 @@ uint64_t uv_get_total_memory(void) {
#if HAVE_INOTIFY_INIT || HAVE_INOTIFY_INIT1

static int new_inotify_fd(void) {
#if HAVE_INOTIFY_INIT1
return inotify_init1(IN_NONBLOCK | IN_CLOEXEC);
#else
int fd;

#if HAVE_INOTIFY_INIT1
fd = inotify_init1(IN_NONBLOCK | IN_CLOEXEC);
if (fd != -1)
return fd;
if (errno != ENOSYS)
return -1;
#endif

if ((fd = inotify_init()) == -1)
return -1;

Expand All @@ -184,7 +189,6 @@ static int new_inotify_fd(void) {
}

return fd;
#endif
}


Expand Down
4 changes: 2 additions & 2 deletions deps/uv/test/test-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static void write_unref_cb(uv_connect_t* req, int status) {
ASSERT(status == 0);

uv_write(&write_req, req->handle, &buf, 1, (uv_write_cb) fail_cb);
uv_unref(uv_default_loop()); // uv_write refs the loop
uv_unref(uv_default_loop()); /* uv_write refs the loop */
}


Expand All @@ -55,7 +55,7 @@ static void shutdown_unref_cb(uv_connect_t* req, int status) {
ASSERT(status == 0);

uv_shutdown(&shutdown_req, req->handle, (uv_shutdown_cb) fail_cb);
uv_unref(uv_default_loop()); // uv_shutdown refs the loop
uv_unref(uv_default_loop()); /* uv_shutdown refs the loop */
}


Expand Down
4 changes: 2 additions & 2 deletions deps/uv/test/test-tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#ifdef _WIN32
# include <io.h>
# include <windows.h>
#else // Unix
#else /* Unix */
# include <fcntl.h>
# include <unistd.h>
#endif
Expand All @@ -37,7 +37,7 @@ TEST_IMPL(tty) {
uv_tty_t tty_in, tty_out;
uv_loop_t* loop = uv_default_loop();

// Make sure we have an FD that refers to a tty
/* Make sure we have an FD that refers to a tty */
#ifdef _WIN32
HANDLE handle;
handle = CreateFileA("conin$",
Expand Down

0 comments on commit 571a519

Please sign in to comment.