Strange results when watching a single file
Closed this issue · 1 comments
SamSaffron commented
For:
require 'rb-inotify'
notifier = INotify::Notifier.new
notifier.watch(__FILE__, :modify) { puts "I was changed " }
notifier.run
I get a single notify event when I save the file and none after no matter how I change the file
for:
require 'rb-inotify'
notifier = INotify::Notifier.new
notifier.watch('.', :modify) { puts "I was changed " }
notifier.run
I get notify events properly, is there a caveat / bug around single file watching?
nex3 commented
I can't reproduce this. My best guess is that something's wrong with your underlying inotify system.