I'm setting up watches on various directories and then later trying to remove them by watch id and am getting errors on removal. I'm not sure if this is just happening randomly on removal, or if the watch was on a directory/file that now is deleted and that's why jnotify is complaining?
inotify_rm_watch: Invalid argument
[exec] net.contentobjects.jnotify.linux.JNotifyException_linux: Error removing watch 141
[exec] at net.contentobjects.jnotify.linux.JNotify_linux.removeWatch(JNotify_linux.java:123)
[exec] at net.contentobjects.jnotify.linux.JNotifyAdapterLinux.unwatch(JNotifyAdapterLinux.java:239)
[exec] at net.contentobjects.jnotify.linux.JNotifyAdapterLinux.removeWatch(JNotifyAdapterLinux.java:207)
[exec] at com.aptana.filewatcher.FileWatcher.removeWatch(FileWatcher.java:106)
...
I am looking for a maintainer for the linux version, let me know if you are interested.
I can test this on Linux 64 bit Gentoo linux. I would be happy to help.
We run a large cluster of gentoo boxes.
this is fixed in my fork/refactor at https://github.com/fhuberts/jnotify
there were some major race conditions in the code.