diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc index e7b846fb057b..80ecad2aae53 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc @@ -40,7 +40,7 @@ int internal_close(fd_t fd) { fd_t internal_open(const char *filename, bool write) { return open(filename, - write ? O_WRONLY | O_CREAT | O_CLOEXEC : O_RDONLY, 0660); + write ? O_WRONLY | O_CREAT : O_RDONLY, 0660); } uptr internal_read(fd_t fd, void *buf, uptr count) {