only use polling

This commit is contained in:
Alex Dadgar 2016-08-11 18:59:48 -07:00
parent 768055b4cc
commit 8323b6a0b5
1 changed files with 1 additions and 7 deletions

View File

@ -6,7 +6,6 @@ import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
"time"
"gopkg.in/tomb.v1"
@ -367,13 +366,8 @@ 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)
}
func fileCopy(src, dst string, perm os.FileMode) error {
// Do a simple copy.