summaryrefslogtreecommitdiff
path: root/inotify/bits.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-12 09:14:40 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-12 09:14:40 -0600
commit8941e9a90b9560e6b433c68725255f827922a5a8 (patch)
treee8978ecfa32a6822bfb91700d330e69da01fe242 /inotify/bits.go
parentb4ba0d061c1ef2f8069a568992eb98b7c060f5cf (diff)
Add an inotify watcher utility using channels; use it.
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.
Diffstat (limited to 'inotify/bits.go')
0 files changed, 0 insertions, 0 deletions