summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-26 17:49:56 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-06-28 18:08:45 +0200
commit1544ec480879aac89442bf6eabdc3bd893474b7f (patch)
treee3b424261a26f41b6371179efbcea6db7379882a /src/lib/eio
parent062f6cabdd0cb7ca96de92cbd149f7a23af7d9b7 (diff)
eio/fallback: fix MODIFY event emission on base path when monitoring
previously this sent a DELETE event any time the target file was modified @fix fix T7042 Differential Revision: https://phab.enlightenment.org/D6442
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/eio_monitor_poll.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/eio/eio_monitor_poll.c b/src/lib/eio/eio_monitor_poll.c
index 7bb5212d51..b47ed8c944 100644
--- a/src/lib/eio/eio_monitor_poll.c
+++ b/src/lib/eio/eio_monitor_poll.c
@@ -126,8 +126,13 @@ _eio_monitor_fallback_heavy_cb(void *data, Ecore_Thread *thread)
126 126
127 if (memcmp(est, &backend->self, sizeof (Eina_Stat)) != 0) 127 if (memcmp(est, &backend->self, sizeof (Eina_Stat)) != 0)
128 { 128 {
129 int event = EIO_MONITOR_DIRECTORY_MODIFIED;
130
131 if (!S_ISDIR(est->mode))
132 /* regular file: eina_file_direct_ls will return NULL */
133 event = EIO_MONITOR_FILE_MODIFIED;
129 ecore_thread_main_loop_begin(); 134 ecore_thread_main_loop_begin();
130 _eio_monitor_send(backend->parent, backend->parent->path, EIO_MONITOR_SELF_DELETED); 135 _eio_monitor_send(backend->parent, backend->parent->path, event);
131 ecore_thread_main_loop_end(); 136 ecore_thread_main_loop_end();
132 } 137 }
133 138