This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Tilak Sharma
committed
Jun 10, 2014
1 parent
441bbc8
commit 35a7e13
Showing
1 changed file
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters