identified at https://code.google.com/p/go/issues/detail?id=8282#c5
In the BSD implementation of fsnotify, the watcher's kbuf buffers a kevent between syscall.SetKevent (which prepares the kevent) and syscall.Kevent (which registers the kevent). The implementation intends to protect access to kbuf, but fails to do so in addWatch and removeWatch. This change fixes the data race by allocating a new kevent buffer for every method invocation.
This counter is counting "IsModify" events.
* A Vagrantfile at the root of the src folder means one box can be used for testing all Go projects instead of just fsnotify * Updates to the Vagrantfile can happen in one place * One less file to drop when fsnotify moves to the standard library #13.