diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-12 09:14:40 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-12 09:14:40 -0600 |
commit | 8941e9a90b9560e6b433c68725255f827922a5a8 (patch) | |
tree | e8978ecfa32a6822bfb91700d330e69da01fe242 /inotify/syscall.go | |
parent | b4ba0d061c1ef2f8069a568992eb98b7c060f5cf (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/syscall.go')
0 files changed, 0 insertions, 0 deletions