diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2012-12-18 14:14:38 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2012-12-18 14:15:02 +0400 |
commit | ba754524a9f6a729a337803aadd5f1b47af968b9 (patch) | |
tree | e4170a4b72257aa7b136edc96e8b2cb4582b1932 /deps/uv/test/runner-unix.c | |
parent | 82c7c84e2550e79b816f87cd1dff3fe4cafb6bbb (diff) | |
download | android-node-v8-ba754524a9f6a729a337803aadd5f1b47af968b9.tar.gz android-node-v8-ba754524a9f6a729a337803aadd5f1b47af968b9.tar.bz2 android-node-v8-ba754524a9f6a729a337803aadd5f1b47af968b9.zip |
deps: upgrade libuv to b86ed94
Diffstat (limited to 'deps/uv/test/runner-unix.c')
-rw-r--r-- | deps/uv/test/runner-unix.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 <stdint.h> /* uintptr_t */ +#include <errno.h> #include <unistd.h> /* usleep */ #include <string.h> /* strdup */ #include <stdio.h> @@ -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; |