summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-02 16:53:13 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-02 16:53:13 +0100
commita72514945bc3edd4fc4d745004e37c5d5487c98d (patch)
tree8be6f3c985e10ae5c3741e5af54beab49a54648b /src/fileio.c
parent7e6a515ed14e204fafb3dd6e98f2fb543e64aedd (diff)
patch 8.2.2276: list of distributed files is outdatedv8.2.2276
Problem: List of distributed files is outdated. Solution: Update the file list. Minor comment updates.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 66061680b0..b3b7100d64 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2280,6 +2280,7 @@ failed:
else
{
int fdflags = fcntl(fd, F_GETFD);
+
if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
(void)fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC);
}