]> go.fuhry.dev Git - fsnotify.git/commit
BSD - Fix issue reported by robfig
authorChris Howey <chris@howey.me>
Wed, 4 Apr 2012 03:24:59 +0000 (22:24 -0500)
committerChris Howey <chris@howey.me>
Wed, 4 Apr 2012 03:24:59 +0000 (22:24 -0500)
commitcee331a3b3ed500e2f3311c2c4f84cb5933f87aa
treede2c1a170678310e3979115f418d63dcf4b9f615
parented3644936270048f26c21c26dc277a6d1072a2ed
BSD - Fix issue reported by robfig

EINTR can be returned by kevent in two cases:
1) fork() while parent/child is calling kevent() will result in the
process calling kevent() to get EINTR while other process is registering
the same kqueue at the kernel level.
2) A file event occurs before timeout expires, but is not yet on the
queue to be returned by kevent().

In either case, we can ignore the error and continue as if timeout
expired without any events.
fsnotify_bsd.go