Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bab59f3

Browse files
committed
uv: upgrade to 0459097
1 parent ebb79cd commit bab59f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

deps/uv/src/unix/kqueue.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ static void uv__fs_event(EV_P_ ev_io* w, int revents) {
6969

7070
handle->cb(handle, NULL, events, 0);
7171

72-
uv__fs_event_stop(handle);
72+
if (handle->fd == -1)
73+
return;
7374

7475
/* 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);
7778
}
7879

7980

0 commit comments

Comments
 (0)