uv: upgrade to 0459097

pull/24503/head
Ben Noordhuis 2012-02-29 16:16:13 +01:00
parent ebb79cdaba
commit bab59f33e7
1 changed files with 4 additions and 3 deletions

View File

@ -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);
}