summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix/fsevents.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-11-16 17:57:15 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2012-11-16 17:58:42 +0100
commitb6a3b0a6297ee205aa34d357edd55b79f91cdf09 (patch)
treef962b088681f43d7a17615cad54fedbf938b00f8 /deps/uv/src/unix/fsevents.c
parente2bcff9aa75e51b9ba071330fe712180abed03e0 (diff)
downloadandroid-node-v8-b6a3b0a6297ee205aa34d357edd55b79f91cdf09.tar.gz
android-node-v8-b6a3b0a6297ee205aa34d357edd55b79f91cdf09.tar.bz2
android-node-v8-b6a3b0a6297ee205aa34d357edd55b79f91cdf09.zip
deps: upgrade libuv to 665a316
Diffstat (limited to 'deps/uv/src/unix/fsevents.c')
-rw-r--r--deps/uv/src/unix/fsevents.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/uv/src/unix/fsevents.c b/deps/uv/src/unix/fsevents.c
index 02565f3a1d..b6d274675a 100644
--- a/deps/uv/src/unix/fsevents.c
+++ b/deps/uv/src/unix/fsevents.c
@@ -81,12 +81,14 @@ void uv__fsevents_cb(uv_async_t* cb, int status) {
handle = cb->data;
UV__FSEVENTS_WALK(handle, {
- if (handle->fd != -1)
+ if (handle->event_watcher.fd != -1)
handle->cb(handle, event->path[0] ? event->path : NULL, event->events, 0);
});
- if ((handle->flags & (UV_CLOSING | UV_CLOSED)) == 0 && handle->fd == -1)
+ if ((handle->flags & (UV_CLOSING | UV_CLOSED)) == 0 &&
+ handle->event_watcher.fd == -1) {
uv__fsevents_close(handle);
+ }
}