http://codereview.appspot.com/6553059/diff/5001/src/pkg/exp/inotify/inotify_linux.go
File src/pkg/exp/inotify/inotify_linux.go (right):
http://codereview.appspot.com/6553059/diff/5001/src/pkg/exp/inotify/inotify_linux.go#newcode156
src/pkg/exp/inotify/inotify_linux.go:156: n, err := syscall.Read(w.fd,
buf[0:])
^ this will block until a new event is received.
this is only a problem if there are no watches when closing the watcher.
(otherwise the syscall.InotifyRmWatch call triggers a new IN_IGNORED
event that unblocks the syscall.Read).
could you advise me if i should use a syscall.Select or a lazy
readEvents go routine to tackle that problem?
both solutions are drafted in github.com/mb0/inotify (latest two
commits).
i would like two fix both issues in the next patch. thank you!
http://codereview.appspot.com/6553059/