]> go.fuhry.dev Git - fsnotify.git/commit
kqueue: addWatch sometimes just watches deletions
authorNathan Youngman <git@nathany.com>
Sat, 13 Dec 2014 04:47:51 +0000 (21:47 -0700)
committerNathan Youngman <git@nathany.com>
Sat, 13 Dec 2014 06:13:37 +0000 (23:13 -0700)
commitc5335bbee2c0449af1f30cea3caa6a7be9e42efd
tree6cf955ec789d1a39837125d944657b60f39e8001
parentb26ce4f25b59a23443829c673303e439614eea0f
kqueue: addWatch sometimes just watches deletions

fix regression #48

When watching a directory with kqueue, fsnotify will watch all the files in it. This includes subdirectories, but it only watches for the subdirectory being deleted. This is to emulate the behavior of inotify on Linux.

A bug in 4a0d1ae9df8c61fb8912829fc714f189358a3dc7 resulted in it watching that subdirectory for all events, so watching a single directory would result in more events than expected.
CHANGELOG.md
kqueue.go