discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=8f69b497b2140480aa7045cb60994a05a6a6ecfb

commit 8f69b497b2140480aa7045cb60994a05a6a6ecfb
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Sep 22 13:17:10 2015 +0900

    e - fm - flush all evas caches to get rid of open file handles b4 umount
    
    this should fix open file handles on unmount by flushing caches first.
    not great, but works. long-term have evas not keep file handles open
    for 0 refcount cached items.
---
 src/bin/e_fm.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c
index 67ca452..593744b 100644
--- a/src/bin/e_fm.c
+++ b/src/bin/e_fm.c
@@ -2611,6 +2611,15 @@ _e_fm2_client_unmount(const char *udi)
 
    _e_fm2_client_get();
 
+   elm_cache_all_flush();
+   edje_file_cache_flush();
+   edje_collection_cache_flush();
+   if (e_comp_get(NULL))
+     {
+        evas_image_cache_flush(e_comp_get(NULL)->evas);
+        evas_font_cache_flush(e_comp_get(NULL)->evas);
+     }
+
    return _e_fm_client_send_new(E_FM_OP_UNMOUNT, (void *)d, l);
 }
 

-- 


Reply via email to