eio: use new API eina_file_close_on_exec.

This commit is contained in:
Cedric BAIL 2017-04-18 16:56:40 -07:00
parent 214e22bf72
commit 9bd80d542c
1 changed files with 1 additions and 7 deletions

View File

@ -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)