Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

uv: upgrade to 0459097

  • Loading branch information...
commit bab59f33e7e51a17771f6236aa236687f8ab899f 1 parent ebb79cd
Ben Noordhuis bnoordhuis authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 deps/uv/src/unix/kqueue.c
7 deps/uv/src/unix/kqueue.c
@@ -69,11 +69,12 @@ static void uv__fs_event(EV_P_ ev_io* w, int revents) {
69 69
70 70 handle->cb(handle, NULL, events, 0);
71 71
72   - uv__fs_event_stop(handle);
  72 + if (handle->fd == -1)
  73 + return;
73 74
74 75 /* File watcher operates in one-shot mode, re-arm it. */
75   - if (handle->fd != -1)
76   - uv__fs_event_start(handle);
  76 + uv__fs_event_stop(handle);
  77 + uv__fs_event_start(handle);
77 78 }
78 79
79 80

0 comments on commit bab59f3

Please sign in to comment.
Something went wrong with that request. Please try again.