Add missing fcntl(..., F_DUPFD_CLOEXEC) argument.

This commit is contained in:
matthieu 2013-03-09 14:01:04 +00:00
parent ead261fb97
commit de08f67d60

View File

@ -84,7 +84,7 @@ FcMakeTempfile (char *template)
# ifdef F_DUPFD_CLOEXEC
if (fd != -1)
{
int newfd = fcntl(fd, F_DUPFD_CLOEXEC);
int newfd = fcntl(fd, F_DUPFD_CLOEXEC, STDIN_FILENO);
close(fd);
fd = newfd;