forked from enlightenment/efl
eio: use new API eina_file_close_on_exec.
This commit is contained in:
parent
214e22bf72
commit
9bd80d542c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue