summaryrefslogtreecommitdiff
path: root/src/lib/eet
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-04-18 16:54:44 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-04-18 16:54:44 -0700
commitfed9ca47f2454e33a3a430caeaa0da9cc7fe5533 (patch)
tree2be08be48de3a4f8db2b75467d8643a933747ffa /src/lib/eet
parentb2893dfc77fc6bcf5c3a16d3dab30cafc3740d15 (diff)
eet: use new API eina_file_close_on_exec.
Diffstat (limited to 'src/lib/eet')
-rw-r--r--src/lib/eet/eet_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index 9d491f6c2c..e74e5e9a2e 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -353,7 +353,7 @@ eet_flush2(Eet_File *ef)
353 return EET_ERROR_NOT_WRITABLE; 353 return EET_ERROR_NOT_WRITABLE;
354 } 354 }
355 355
356 if (fcntl(fd, F_SETFD, FD_CLOEXEC)) ERR("can't set CLOEXEC on write fd"); 356 if (!eina_file_close_on_exec(fd, EINA_TRUE)) ERR("can't set CLOEXEC on write fd");
357 } 357 }
358 else 358 else
359 { 359 {