summaryrefslogtreecommitdiff
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
parent31ef275388d9db89bf76c97dab37111216478255 (diff)
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)
262 em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path); 262 em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path);
263 } 263 }
264 if (mask & IN_IGNORED) 264 if (mask & IN_IGNORED)
265 { 265 /* The watch is removed. If the file name still exists monitor the new one,
266 /* The watch is removed. If the file name still exists monitor the new one, 266 * else delete it */
267 * else delete it */ 267 _ecore_file_monitor_inotify_monitor(em, em->path);
268 if (ecore_file_exists(em->path))
269 {
270 if (_ecore_file_monitor_inotify_monitor(em, em->path))
271 em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path);
272 }
273 else
274 em->func(em->data, em, ECORE_FILE_EVENT_DELETED_SELF, em->path);
275 }
276} 268}
277 269
278static int 270static int