Be carefull using IN_MODIFY :
Lot of UNIX editor, for instance like 'vi', work in a 'xxx~' file, and changes are written in 'xxx' when saving or saving and closing.
If a watcher is done on 'xxx', no IN_MODIFY event occurs while not saved !
Prefere IN_CLOSE_WRITE in such case .