only use polling

This commit is contained in:
Alex Dadgar
2016-08-11 18:59:48 -07:00
parent 014d8fe0e8
commit 17b9e7ddb4

View File

@@ -6,7 +6,6 @@ import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
"time"
"gopkg.in/tomb.v1"
@@ -367,12 +366,7 @@ func (d *AllocDir) ChangeEvents(path string, curOffset int64, t *tomb.Tomb) (*wa
// getFileWatcher returns a FileWatcher for the given path.
func getFileWatcher(path string) watch.FileWatcher {
if runtime.GOOS == "windows" {
// There are some deadlock issues with the inotify implementation on
// windows. Use polling watcher for now.
return watch.NewPollingFileWatcher(path)
}
return watch.NewInotifyFileWatcher(path)
return watch.NewPollingFileWatcher(path)
}
func fileCopy(src, dst string, perm os.FileMode) error {