summaryrefslogtreecommitdiff
path: root/inotify/bits.go
AgeCommit message (Collapse)Author
2016-12-18Godoc comments.Luke Shumaker
2015-11-08fix typoLuke Shumaker
2015-09-18Massive documentation and copyright clean-up.Luke Shumaker
2015-09-12gofmt, use make(chan) without a number argument where possibleLuke Shumaker
2015-09-12inotify: fix the type of the Init1 flagsLuke Shumaker
2015-09-12woops, remove cruft from inotify changeLuke Shumaker
2015-09-08I am dumb, fix inotify bindingsLuke Shumaker
2015-09-05inotify: Avoid most of the race conditions, get rid of CintLuke Shumaker
There's still a condition that could be a race with fd-reuse, if one goroutine is calling inotify.{AddWatch,RmWatch,Read}(); another goroutine is calling inotify.Close(), and several things happen between loadFd() running and the add_watch/rm_watch/read syscall launching: - syscall.Close() returns - syscall.Open() reuses the filedescriptor A B syscall(loadFd()) inotify.Close(); syscall.Open() ---------------------------------------------------------- loadFd() syscall.Close() syscall.Open() syscall() Given that Read() can't be allowed to block Close() from running, I'm not sure there's a way to fix this.
2015-08-28Clean up, based on making godoc slightly more readableLuke Shumaker
2015-08-28switch to my own inotify bindings, the golang.org/x/exp bindings are crapLuke Shumaker