| and regarding the bug #494397, I am not quite sure
| how to fix it since as you have mentioned already,
| the inotify in linux kernel doesn't support recursive
| monitoring of directories.
| No matter how good the user space implementation of
| this recursive monitoring, there will be a race condition
| where you will still miss some events.
| For example if we do like mkdir -p a/b/c/d,
| a user space implementation will not be fast enough to watch
| the new directories.
| Please have a look also to a similar problem with pynotify:
| http://trac.dbzteam.org/pyinotify/ticket/8 | In my opinion, this should be fixed in the kernel. inotify
| should be able to monitor directory recursively.