Add missing file descriptor to F_DUPFD_CLOEXEC

Patch from Matthieu Herrb
This commit is contained in:
Akira TAGOH 2013-01-22 10:26:41 +09:00
parent 6118781f7f
commit 9dbc282796
1 changed files with 1 additions and 1 deletions

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;