summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-14On go 1.8, return os.ErrClosed on double-close.HEADmasterLuke Shumaker
2017-01-14Fix a typo in a comment.Luke Shumaker
2016-12-19Use x/sys/unix instead of the deprecated syscall.Luke Shumaker
2016-12-18add inotify.NewInotifyLuke Shumaker
2016-12-18Make inotify.Inotify more robust; remove inotify.Watcher. BREAKING CHANGE.Luke Shumaker
2016-12-18Godoc comments.Luke Shumaker
2016-06-17Add some _XOPEN_CRYPT stuff.Luke Shumaker
2015-11-08add readme.goLuke Shumaker
2015-11-08fix typoLuke Shumaker
2015-11-03fold inotify/inutil into inotifyLuke Shumaker
2015-10-26dlfcn: dlerror requires a global lock anywayLuke Shumaker
2015-10-26dlfcn: return raw unsafe.PointerLuke Shumaker
2015-10-26oopsLuke Shumaker
2015-10-26dl: fix a pointer/value issue found by go vetLuke Shumaker
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