Added a param to inotify flags; seems to detect removal of SDs much better now
authorskeezix <skeezix@flotsam-vm.(none)>
Mon, 15 Feb 2010 19:28:52 +0000 (14:28 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Mon, 15 Feb 2010 19:28:52 +0000 (14:28 -0500)
lib/pnd_notify.c

index 55127b8..83e8d8d 100644 (file)
@@ -22,7 +22,7 @@ static int notify_handle;
 
 #define PND_INOTIFY_MASK     IN_CREATE | IN_DELETE | IN_UNMOUNT \
                              | IN_DELETE_SELF | IN_MOVE_SELF    \
-                             | IN_MOVED_FROM | IN_MOVED_TO
+                             | IN_MOVED_FROM | IN_MOVED_TO | IN_MODIFY
 
 pnd_notify_handle pnd_notify_init ( void ) {
   int fd;