1
0
forked from aniani/vim

updated for version 7.2-300

This commit is contained in:
Bram Moolenaar
2009-11-17 16:13:15 +00:00
parent 2d7ff056e1
commit f05da21900
7 changed files with 88 additions and 1 deletions

View File

@@ -2254,6 +2254,14 @@ failed:
if (!read_buffer && !read_stdin)
close(fd); /* errors are ignored */
#ifdef HAVE_FD_CLOEXEC
else
{
int fdflags = fcntl(fd, F_GETFD);
if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC);
}
#endif
vim_free(buffer);
#ifdef HAVE_DUP