Add missing file descriptor to F_DUPFD_CLOEXEC
Patch from Matthieu Herrb
This commit is contained in:
parent
6118781f7f
commit
9dbc282796
|
@ -84,7 +84,7 @@ FcMakeTempfile (char *template)
|
||||||
# ifdef F_DUPFD_CLOEXEC
|
# ifdef F_DUPFD_CLOEXEC
|
||||||
if (fd != -1)
|
if (fd != -1)
|
||||||
{
|
{
|
||||||
int newfd = fcntl(fd, F_DUPFD_CLOEXEC);
|
int newfd = fcntl(fd, F_DUPFD_CLOEXEC, STDIN_FILENO);
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
fd = newfd;
|
fd = newfd;
|
||||||
|
|
Loading…
Reference in New Issue