From d95d5b5a82caa75881744310e1efcc2e48d3fe34 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 18 Jan 2011 08:43:27 +0000 Subject: [PATCH] missing IN_MODIFY! SVN revision: 56210 --- .../lib/ecore_file/ecore_file_monitor_inotify.c | 27 +++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c index 71e0cab..e9bb595 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file_monitor_inotify.c @@ -209,6 +209,11 @@ _ecore_file_monitor_inotify_events(Ecore_File_Monitor *em, char *file, int mask) if (!isdir) em->func(em->data, em, ECORE_FILE_EVENT_MODIFIED, buf); } + if (mask & IN_MODIFY) + { + if (!isdir) + em->func(em->data, em, ECORE_FILE_EVENT_MODIFIED, buf); + } if (mask & IN_MOVED_FROM) { if (isdir) @@ -268,14 +273,20 @@ _ecore_file_monitor_inotify_events(Ecore_File_Monitor *em, char *file, int mask) static int _ecore_file_monitor_inotify_monitor(Ecore_File_Monitor *em, const char *path) { - int mask; - mask = IN_ATTRIB|IN_CLOSE_WRITE| - IN_MOVED_FROM|IN_MOVED_TO| - IN_DELETE|IN_CREATE| - IN_DELETE_SELF|IN_MOVE_SELF| - IN_UNMOUNT; - ECORE_FILE_MONITOR_INOTIFY(em)->wd = inotify_add_watch(ecore_main_fd_handler_fd_get(_fdh), - path, mask); + int mask = + IN_ATTRIB | + IN_CLOSE_WRITE | + IN_MOVED_FROM | + IN_MOVED_TO | + IN_DELETE | + IN_CREATE | + IN_MODIFY | + IN_DELETE_SELF | + IN_MOVE_SELF | + IN_UNMOUNT; + + ECORE_FILE_MONITOR_INOTIFY(em)->wd = + inotify_add_watch(ecore_main_fd_handler_fd_get(_fdh), path, mask); if (ECORE_FILE_MONITOR_INOTIFY(em)->wd < 0) { ERR("inotify_add_watch error"); -- 2.7.4