summaryrefslogtreecommitdiff
path: root/deps/uv/src/fs-poll.c
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-06-21 02:39:13 +0200
committerBert Belder <bertbelder@gmail.com>2012-06-21 02:39:13 +0200
commitae7a3cddae67ac3d10df8a41e1ac4b8cc2f5d2f5 (patch)
tree9075a802f79583ef79fffdb553ccdf3eaf453fe1 /deps/uv/src/fs-poll.c
parent57d53a47e86c310f99e991ea0afb4a3790a54751 (diff)
downloadandroid-node-v8-ae7a3cddae67ac3d10df8a41e1ac4b8cc2f5d2f5.tar.gz
android-node-v8-ae7a3cddae67ac3d10df8a41e1ac4b8cc2f5d2f5.tar.bz2
android-node-v8-ae7a3cddae67ac3d10df8a41e1ac4b8cc2f5d2f5.zip
uv: upgrade to da59427
Diffstat (limited to 'deps/uv/src/fs-poll.c')
-rw-r--r--deps/uv/src/fs-poll.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/uv/src/fs-poll.c b/deps/uv/src/fs-poll.c
index 61438f916f..99d3bcfae9 100644
--- a/deps/uv/src/fs-poll.c
+++ b/deps/uv/src/fs-poll.c
@@ -30,6 +30,8 @@ static int statbuf_eq(const uv_statbuf_t* a, const uv_statbuf_t* b);
static void timer_cb(uv_timer_t* timer, int status);
static void poll_cb(uv_fs_t* req);
+static uv_statbuf_t zero_statbuf;
+
int uv_fs_poll_init(uv_loop_t* loop, uv_fs_poll_t* handle) {
/* TODO(bnoordhuis) Mark fs_req internal. */
@@ -141,7 +143,7 @@ static void poll_cb(uv_fs_t* req) {
if (req->result != 0) {
if (handle->busy_polling != -req->errorno) {
uv__set_artificial_error(handle->loop, req->errorno);
- handle->poll_cb(handle, -1, NULL, NULL);
+ handle->poll_cb(handle, -1, &handle->statbuf, &zero_statbuf);
handle->busy_polling = -req->errorno;
}
goto out;