| Index: runtime/bin/file_win.cc
|
| diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc
|
| index cfce7088583bf5b9e0e3ffc92e9b46a9df14cde0..9076d7a2c411910184158d8c94c68a08e1658417 100644
|
| --- a/runtime/bin/file_win.cc
|
| +++ b/runtime/bin/file_win.cc
|
| @@ -97,9 +97,9 @@ off_t File::Length() {
|
|
|
|
|
| File* File::Open(const char* name, FileOpenMode mode) {
|
| - int flags = O_RDONLY | O_BINARY;
|
| + int flags = O_RDONLY | O_BINARY | O_NOINHERIT;
|
| if ((mode & kWrite) != 0) {
|
| - flags = (O_RDWR | O_CREAT | O_BINARY);
|
| + flags = (O_RDWR | O_CREAT | O_BINARY | O_NOINHERIT);
|
| }
|
| if ((mode & kTruncate) != 0) {
|
| flags = flags | O_TRUNC;
|
|
|