From bab59f33e7e51a17771f6236aa236687f8ab899f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 29 Feb 2012 16:16:13 +0100 Subject: [PATCH] uv: upgrade to 0459097 --- deps/uv/src/unix/kqueue.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deps/uv/src/unix/kqueue.c b/deps/uv/src/unix/kqueue.c index 68d064dad96..c3256a92236 100644 --- a/deps/uv/src/unix/kqueue.c +++ b/deps/uv/src/unix/kqueue.c @@ -69,11 +69,12 @@ static void uv__fs_event(EV_P_ ev_io* w, int revents) { handle->cb(handle, NULL, events, 0); - uv__fs_event_stop(handle); + if (handle->fd == -1) + return; /* File watcher operates in one-shot mode, re-arm it. */ - if (handle->fd != -1) - uv__fs_event_start(handle); + uv__fs_event_stop(handle); + uv__fs_event_start(handle); }