0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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

@@ -1343,6 +1343,11 @@ mf_do_open(mfp, fname, flags)
}
else
{
#ifdef HAVE_FD_CLOEXEC
int fdflags = fcntl(mfp->mf_fd, F_GETFD);
if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC);
#endif
#ifdef HAVE_SELINUX
mch_copy_sec(fname, mfp->mf_fname);
#endif