libpnd - inotify was catching all modifications instead of closed-writable files...
authorskeezix <skeezix@flotsam-vm.(none)>
Mon, 21 Feb 2011 21:14:05 +0000 (16:14 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Mon, 21 Feb 2011 21:14:05 +0000 (16:14 -0500)
lib/pnd_notify.c

index 9c377c7..48593c2 100644 (file)
@@ -24,7 +24,7 @@ static int notify_handle;
 #if 1
 #define PND_INOTIFY_MASK     IN_CREATE | IN_DELETE | IN_UNMOUNT \
                              | IN_DELETE_SELF | IN_MOVE_SELF    \
 #if 1
 #define PND_INOTIFY_MASK     IN_CREATE | IN_DELETE | IN_UNMOUNT \
                              | IN_DELETE_SELF | IN_MOVE_SELF    \
-                             | IN_MOVED_FROM | IN_MOVED_TO | IN_MODIFY
+                             | IN_MOVED_FROM | IN_MOVED_TO | IN_CLOSE_WRITE
 #else
 #define PND_INOTIFY_MASK     IN_ALL_EVENTS
 #endif
 #else
 #define PND_INOTIFY_MASK     IN_ALL_EVENTS
 #endif