evas cserve2 - fix check of fcntl return

fix CID 1039706
This commit is contained in:
Carsten Haitzler 2014-08-27 15:04:04 +09:00
parent 9825a16a26
commit c71d2c7d83
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ _socketfd_handler(int fd EINA_UNUSED, Fd_Flags flags EINA_UNUSED, void *data EIN
/* TODO: when porting to windows, do:
* SetHandleInformation(s, HANDLE_FLAG_INHERIT, 0)
*/
fcntl(s, F_SETFD, FD_CLOEXEC);
if (fcntl(s, F_SETFD, FD_CLOEXEC) < 0) ERR("Cannot set CLOEXEC on fd");
cserve2_client_accept(s);
}