cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9bd80d542ca98c0da01d20d262e3c7fbdc0dc1ff

commit 9bd80d542ca98c0da01d20d262e3c7fbdc0dc1ff
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Apr 18 16:56:40 2017 -0700

    eio: use new API eina_file_close_on_exec.
---
 src/lib/eio/eio_monitor_inotify.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/lib/eio/eio_monitor_inotify.c 
b/src/lib/eio/eio_monitor_inotify.c
index 9279516..4f36778 100644
--- a/src/lib/eio/eio_monitor_inotify.c
+++ b/src/lib/eio/eio_monitor_inotify.c
@@ -182,13 +182,7 @@ void eio_monitor_backend_init(void)
    if (fd < 0)
      return;
 
-#ifdef HAVE_FCNTL
-   flags = fcntl(fd, F_GETFD);
-   flags |= FD_CLOEXEC;
-   rc = fcntl(fd, F_SETFD, flags);
-   if (rc < 0)
-     return;
-#endif
+   eina_file_close_on_exec(fd, EINA_TRUE);
 
    _inotify_fdh = ecore_main_fd_handler_add(fd, ECORE_FD_READ, 
_eio_inotify_handler, NULL, NULL, NULL);
    if (!_inotify_fdh)

-- 


Reply via email to