summaryrefslogtreecommitdiff
path: root/examples/example-libuv.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-libuv.c')
-rw-r--r--examples/example-libuv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/example-libuv.c b/examples/example-libuv.c
index a5462d4..cbde452 100644
--- a/examples/example-libuv.c
+++ b/examples/example-libuv.c
@@ -33,7 +33,10 @@ void disconnectCallback(const redisAsyncContext *c, int status) {
}
int main (int argc, char **argv) {
+#ifndef _WIN32
signal(SIGPIPE, SIG_IGN);
+#endif
+
uv_loop_t* loop = uv_default_loop();
redisAsyncContext *c = redisAsyncConnect("127.0.0.1", 6379);