cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=214e22bf7275537e85b92cea37f7759a31267b46
commit 214e22bf7275537e85b92cea37f7759a31267b46 Author: Cedric BAIL <ced...@osg.samsung.com> Date: Tue Apr 18 16:56:18 2017 -0700 ecore_file: use new API eina_file_close_on_exec. --- src/lib/ecore_file/ecore_file_monitor_inotify.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/ecore_file/ecore_file_monitor_inotify.c b/src/lib/ecore_file/ecore_file_monitor_inotify.c index dc84d44..e4cd3a6 100644 --- a/src/lib/ecore_file/ecore_file_monitor_inotify.c +++ b/src/lib/ecore_file/ecore_file_monitor_inotify.c @@ -53,19 +53,12 @@ int ecore_file_monitor_backend_init(void) { int fd; -#ifdef HAVE_FCNTL - int flags; -#endif fd = inotify_init(); if (fd < 0) return 0; -#ifdef HAVE_FCNTL - flags = fcntl(fd, F_GETFD); - flags |= FD_CLOEXEC; - fcntl(fd, F_SETFD, flags); -#endif + eina_file_close_on_exec(fd, EINA_TRUE); _fdh = ecore_main_fd_handler_add(fd, ECORE_FD_READ, _ecore_file_monitor_inotify_handler, NULL, NULL, NULL); --