bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=1544ec480879aac89442bf6eabdc3bd893474b7f
commit 1544ec480879aac89442bf6eabdc3bd893474b7f Author: Mike Blumenkrantz <[email protected]> Date: Tue Jun 26 17:49:56 2018 -0400 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 --- src/lib/eio/eio_monitor_poll.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) if (memcmp(est, &backend->self, sizeof (Eina_Stat)) != 0) { + int event = EIO_MONITOR_DIRECTORY_MODIFIED; + + if (!S_ISDIR(est->mode)) + /* regular file: eina_file_direct_ls will return NULL */ + event = EIO_MONITOR_FILE_MODIFIED; ecore_thread_main_loop_begin(); - _eio_monitor_send(backend->parent, backend->parent->path, EIO_MONITOR_SELF_DELETED); + _eio_monitor_send(backend->parent, backend->parent->path, event); ecore_thread_main_loop_end(); } --
