summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2018-03-14 09:38:04 +0200
committerGitHub <noreply@github.com>2018-03-14 09:38:04 +0200
commit930682c4877b66417184c1787fab7941c9331c34 (patch)
tree9dcde24cac8100065588b5788d92f017e726349d
parent7bd95307f2aa901c141d4d6c4c568a2ed85ba01b (diff)
parent26e4a48bda8a09ac4ddef64e12841fbee29f4d7d (diff)
downloadmariadb-git-930682c4877b66417184c1787fab7941c9331c34.tar.gz
Merge pull request #636 from grooverdan/10.0-galera-MDEV-8743-linux-aio-ib_logfile0
MDEV-8743: ib_logfile0 Use O_CLOEXEC so galera SST scripts don't get fd
-rw-r--r--storage/innobase/os/os0file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc
index e946bcf5f30..df096dcc6fd 100644
--- a/storage/innobase/os/os0file.cc
+++ b/storage/innobase/os/os0file.cc
@@ -3578,7 +3578,7 @@ os_aio_native_aio_supported(void)
strcpy(name + dirnamelen, "ib_logfile0");
- fd = ::open(name, O_RDONLY);
+ fd = ::open(name, O_RDONLY | O_CLOEXEC);
if (fd == -1) {