From 8323b6a0b5ce7a9b3860cf9d5b4bc176439b4b6e Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 11 Aug 2016 18:59:48 -0700 Subject: [PATCH] only use polling --- client/allocdir/alloc_dir.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/allocdir/alloc_dir.go b/client/allocdir/alloc_dir.go index 514f05cfb..f9e6c05f9 100644 --- a/client/allocdir/alloc_dir.go +++ b/client/allocdir/alloc_dir.go @@ -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 {