diff options
Diffstat (limited to 'src/collect/collect.c')
-rw-r--r-- | src/collect/collect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collect/collect.c b/src/collect/collect.c index cb5df01c6a..4ecb6b0d19 100644 --- a/src/collect/collect.c +++ b/src/collect/collect.c @@ -95,7 +95,7 @@ static int prepare(char *dir, char *filename) snprintf(buf, sizeof(buf), "%s/%s", dir, filename); - fd = open(buf,O_RDWR|O_CREAT, S_IRUSR|S_IWUSR); + fd = open(buf,O_RDWR|O_CREAT|O_CLOEXEC, S_IRUSR|S_IWUSR); if (fd < 0) fprintf(stderr, "Cannot open %s: %m\n", buf); |