summaryrefslogtreecommitdiff
path: root/adapters
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-04-09 12:39:49 -0700
committerGitHub <noreply@github.com>2020-04-09 12:39:49 -0700
commita5613f3f7fd3a11353561360d40b9e7dcbeffc7f (patch)
treeb0ff5f8ba108288b43c2ab27a48030fcc28332a6 /adapters
parentec08c2b94a6d2e3f3572dfdac734fb8a92682ac8 (diff)
Use correct libuv call on Windows (#784)
Explicitly call `uv_poll_init_socket` as that has slightly different semantics on Windows (and is identical to `uv_poll_init` on Linux). http://docs.libuv.org/en/v1.x/poll.html#c.uv_poll_init_socket
Diffstat (limited to 'adapters')
-rw-r--r--adapters/libuv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/libuv.h b/adapters/libuv.h
index 39ef7cf..7aac127 100644
--- a/adapters/libuv.h
+++ b/adapters/libuv.h
@@ -106,7 +106,7 @@ static int redisLibuvAttach(redisAsyncContext* ac, uv_loop_t* loop) {
memset(p, 0, sizeof(*p));
- if (uv_poll_init(loop, &p->handle, c->fd) != 0) {
+ if (uv_poll_init_socket(loop, &p->handle, c->fd) != 0) {
return REDIS_ERR;
}