aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_file/ecore_file_monitor_inotify.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-15 15:34:58 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:20 -0700
commit2894a2e3c3786e707fa736c64c59d73520fbba82 (patch)
tree26792c0a4bf93148522d12a31df87cca303c6ccf /src/lib/ecore_file/ecore_file_monitor_inotify.c
parentecore: allow for NULL file handler request. (diff)
downloadefl-2894a2e3c3786e707fa736c64c59d73520fbba82.tar.gz
ecore_file: on shutdown properly set to NULL to avoid confusion when cycling init/shutdown.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_inotify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c b/src/lib/ecore_file/ecore_file_monitor_inotify.c
index d13eb2719d..988893de4f 100644
--- a/src/lib/ecore_file/ecore_file_monitor_inotify.c
+++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c
@@ -108,6 +108,7 @@ ecore_file_monitor_backend_shutdown(void)
ecore_main_fd_handler_del(_fdh);
if (fd > -1)
close(fd);
+ _fdh = NULL;
}
eina_hash_free(monitor_hash);
monitor_hash = NULL;