elementary: use new API eina_file_close_on_exec.

This commit is contained in:
Cedric BAIL 2017-04-18 16:57:11 -07:00
parent b12311804f
commit c1ea5ed769
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ main(int argc, char **argv)
buf, strerror(errno));
exit(-1);
}
if (fcntl(sock, F_SETFD, FD_CLOEXEC) < 0)
if (!eina_file_close_on_exec(sock, EINA_TRUE))
{
CRI("cannot set close on exec socket for '%s' (fd=%d): %s",
buf, sock, strerror(errno));