Merge pull request #941 from pmmp:no-handle-inheritance

PiperOrigin-RevId: 412997201
This commit is contained in:
Victor Costan 2021-11-30 00:09:27 +00:00
commit e426c83e88

View File

@ -622,7 +622,7 @@ class WindowsEnv : public Env {
} }
Status NewLogger(const std::string& filename, Logger** result) override { Status NewLogger(const std::string& filename, Logger** result) override {
std::FILE* fp = std::fopen(filename.c_str(), "w"); std::FILE* fp = std::fopen(filename.c_str(), "wN");
if (fp == nullptr) { if (fp == nullptr) {
*result = nullptr; *result = nullptr;
return WindowsError(filename, ::GetLastError()); return WindowsError(filename, ::GetLastError());