Skip to content

Commit

Permalink
MDEV-8743: ib_logfile0 Use O_CLOEXEC so galera SST scripts don't get fd
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Mar 2, 2018
1 parent 7bd9530 commit 26e4a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/innobase/os/os0file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit 26e4a48

Please sign in to comment.