From ba754524a9f6a729a337803aadd5f1b47af968b9 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Tue, 18 Dec 2012 14:14:38 +0400 Subject: deps: upgrade libuv to b86ed94 --- deps/uv/test/runner-unix.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'deps/uv/test/runner-unix.c') diff --git a/deps/uv/test/runner-unix.c b/deps/uv/test/runner-unix.c index 77c68dcd6c..f6ea45e140 100644 --- a/deps/uv/test/runner-unix.c +++ b/deps/uv/test/runner-unix.c @@ -24,6 +24,7 @@ #include /* uintptr_t */ +#include #include /* usleep */ #include /* strdup */ #include @@ -146,8 +147,11 @@ static void* dowait(void* data) { if (args->pipe[1] >= 0) { /* Write a character to the main thread to notify it about this. */ - char c = 0; - write(args->pipe[1], &c, 1); + ssize_t r; + + do + r = write(args->pipe[1], "", 1); + while (r == -1 && errno == EINTR); } return NULL; -- cgit v1.2.3