@@ -30,7 +30,7 @@ func WaitForReplacement(filename string, op fsnotify.Op,
33−func WatchForUpdates(filename string, done <-chan bool, action func()) bool {
33+func WatchForUpdates(filename string, done <-chan bool, action func()) {
34 filename = filepath.Clean(filename)
34 filename = filepath.Clean(filename)
35 watcher, err := fsnotify.NewWatcher()
35 watcher, err := fsnotify.NewWatcher()
36 if err != nil {
36 if err != nil {
@@ -65,5 +65,5 @@ func WatchForUpdates(filename string, done <-chan bool, action func()) bool {
65 if err = watcher.Add(filename); err != nil {
65 if err = watcher.Add(filename); err != nil {
66 log.Fatal("failed to add ", filename, " to watcher: ", err)
66 log.Fatal("failed to add ", filename, " to watcher: ", err)
68− return true
68+ log.Printf("watching %s for updates", filename)