After creating a file descriptor by calling inotify_init() I add thousands of watches to the inotify instance(hope it is right to call that so).
My questions is if my program crashes what happens to those watch descriptors? Can I clear them all after the crash? It is important since allowed watch descriptor count is limited by /proc/sys/fs/inotify/max_user_watches