discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=11e92cdc863c590ab426acf09ab720fe0e36253c
commit 11e92cdc863c590ab426acf09ab720fe0e36253c Author: Mike Blumenkrantz <zm...@osg.samsung.com> Date: Tue Oct 3 13:33:14 2017 -0400 ecore-file: do not emit events when an inotify watch is removed ??????????????????????????????????????????????????????????????????????????????? @fix --- src/lib/ecore_file/ecore_file_monitor_inotify.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c b/src/lib/ecore_file/ecore_file_monitor_inotify.c index e4cd3a69ad..7c8d5c9e79 100644 --- a/src/lib/ecore_file/ecore_file_monitor_inotify.c +++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c @@ -262,17 +262,9 @@ _ecore_file_monitor_inotify_events(Ecore_File_Monitor *em, char *file, int mask) em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path); } if (mask & IN_IGNORED) - { - /* The watch is removed. If the file name still exists monitor the new one, - * else delete it */ - if (ecore_file_exists(em->path)) - { - if (_ecore_file_monitor_inotify_monitor(em, em->path)) - em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path); - } - else - em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path); - } + /* The watch is removed. If the file name still exists monitor the new one, + * else delete it */ + _ecore_file_monitor_inotify_monitor(em, em->path); } static int --