Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

uv: upgrade to 0459097

  • Loading branch information...
commit bab59f33e7e51a17771f6236aa236687f8ab899f 1 parent ebb79cd
Ben Noordhuis bnoordhuis authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 deps/uv/src/unix/kqueue.c
7 deps/uv/src/unix/kqueue.c
View
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.