aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-10-03 13:33:14 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-10-03 13:34:22 -0400
commit11e92cdc863c590ab426acf09ab720fe0e36253c (patch)
tree8e5b50c332502fd9d08290ffd3a8860b178afb38 /src/lib/ecore_file
parentelementary: Mark unused function parameter as unused (diff)
downloadefl-11e92cdc863c590ab426acf09ab720fe0e36253c.tar.gz
ecore-file: do not emit events when an inotify watch is removed
??????????????????????????????????????????????????????????????????????????????? @fix
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_inotify.c14
1 files 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