-
-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing create events on OS X #14
Comments
This is likely the cause of TestFsnotifySubdir fails intermittently on Mac OS X 10.9.2: |
nathany
pushed a commit
that referenced
this issue
Aug 17, 2014
nathany
pushed a commit
that referenced
this issue
Aug 17, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@elgs reported this issue at howeyc/fsnotify#82
kqueue doesn't have a
NOTE_CREATE
event so fsnotify_bsd.go is doing a ReadDir and scanning for created files. However, it someone gets confused as to which files already exist:The problem is that
sendDirectoryChangeEvents
does a ReadDir and sends a create event for a file. Then it callswatchDirectoryFiles
which does a ReadDir as well. By this time more files have been touched so ReadDir gets a different result.watchDirectoryFiles
is marking those files as existing without sending create events. And since they have been flagged as existing, those files are never sent as create events the next timesendDirectoryChangeEvents
is called.For some reason I haven't been able to reproduce the issue on FreeBSD, which uses nearly all the same code.
The text was updated successfully, but these errors were encountered: