diff --git a/pkg/watcher/linux.go b/pkg/watcher/linux.go index c3d97ae..a3b4e02 100644 --- a/pkg/watcher/linux.go +++ b/pkg/watcher/linux.go @@ -25,7 +25,7 @@ func NewFSWatcher() (fsw *FSWatcher, err error) { fsw.wds = make([]int, 0) - return nil, nil + return fsw, nil } func (fsw *FSWatcher) AddWatch(path string, mask uint32) error { @@ -35,7 +35,6 @@ func (fsw *FSWatcher) AddWatch(path string, mask uint32) error { } fsw.wds = append(fsw.wds, wd) - syscall.Read(fsw.fd, nil) return nil }