summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-10-26make gofmt complain slightly lessLuke Shumaker
2015-09-18dl: Keep track of if a handle has been closedLuke 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-12Add an inotify watcher utility using channels; use it.Luke Shumaker
The interface of inotify/inutil.Watcher more resembles golang.org/x/exp/inotify; with it using channels instead of repeated calls to Read(). In my use-case, this is useful because it allows implementing a "read" (select, really) that doesn't block Close(); which is required to handle the TERM signal correctly.
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-07Pull the mucking with getgrnam into a getgr package.Luke Shumaker
2015-09-07Disable the nss ldap module for our process (include bindings for libdl)Luke 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-09-05clean up loggingLuke Shumaker
2015-09-03remove stray newlineLuke Shumaker
2015-09-03Fix issues in inotify bindingsLuke Shumaker
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
2015-08-26stuffLuke Shumaker
2015-08-26workLuke Shumaker
2015-08-25initial commitLuke Shumaker