summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-04-18 16:56:40 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-04-18 16:56:40 -0700
commit9bd80d542ca98c0da01d20d262e3c7fbdc0dc1ff (patch)
tree90a7a2afe65c9ccb470d708158663594a2f6a809 /src/lib/eio
parent214e22bf7275537e85b92cea37f7759a31267b46 (diff)
eio: use new API eina_file_close_on_exec.
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/eio_monitor_inotify.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/eio/eio_monitor_inotify.c b/src/lib/eio/eio_monitor_inotify.c
index 92795165c1..4f36778f5f 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)
182 if (fd < 0) 182 if (fd < 0)
183 return; 183 return;
184 184
185#ifdef HAVE_FCNTL 185 eina_file_close_on_exec(fd, EINA_TRUE);
186 flags = fcntl(fd, F_GETFD);
187 flags |= FD_CLOEXEC;
188 rc = fcntl(fd, F_SETFD, flags);
189 if (rc < 0)
190 return;
191#endif
192 186
193 _inotify_fdh = ecore_main_fd_handler_add(fd, ECORE_FD_READ, _eio_inotify_handler, NULL, NULL, NULL); 187 _inotify_fdh = ecore_main_fd_handler_add(fd, ECORE_FD_READ, _eio_inotify_handler, NULL, NULL, NULL);
194 if (!_inotify_fdh) 188 if (!_inotify_fdh)