ext/libuv/src/unix/stream.c in libuv-0.11.1 vs ext/libuv/src/unix/stream.c in libuv-0.11.2
- old
+ new
@@ -296,11 +296,11 @@
int ret;
int kq;
kq = kqueue();
if (kq == -1) {
- fprintf(stderr, "(libuv) Failed to create kqueue (%d)\n", errno);
+ perror("(libuv) kqueue()");
return -errno;
}
EV_SET(&filter[0], *fd, EVFILT_READ, EV_ADD | EV_ENABLE, 0, 0, 0);
@@ -1005,10 +1005,10 @@
/* Set up to receive a descriptor even if one isn't in the message */
msg.msg_controllen = 64;
msg.msg_control = (void*) cmsg_space;
do {
- nread = recvmsg(uv__stream_fd(stream), &msg, 0);
+ nread = uv__recvmsg(uv__stream_fd(stream), &msg, 0);
}
while (nread < 0 && errno == EINTR);
}
if (nread < 0) {