eet - handle fcntl error

fix CID 1039691
This commit is contained in:
Carsten Haitzler 2014-08-27 16:35:48 +09:00
parent f8e036d5af
commit b0adec349f
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ eet_flush2(Eet_File *ef)
if (!fp)
return EET_ERROR_NOT_WRITABLE;
fcntl(fd, F_SETFD, FD_CLOEXEC);
if (fcntl(fd, F_SETFD, FD_CLOEXEC)) ERR("can't set CLOEXEC on write fd");
}
else
return EET_ERROR_NOT_WRITABLE;