Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Fix data race on kevent buffer. #98

Merged
merged 1 commit into from
Jun 17, 2014
Merged

Fix data race on kevent buffer. #98

merged 1 commit into from
Jun 17, 2014

Commits on Jun 10, 2014

  1. Fix data race on kevent buffer.

    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.
    Tilak Sharma committed Jun 10, 2014
    Configuration menu
    Copy the full SHA
    35a7e13 View commit details
    Browse the repository at this point in the history