summaryrefslogtreecommitdiffstats
path: root/source/Core/StreamFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Core/StreamFile.cpp')
-rw-r--r--source/Core/StreamFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/Core/StreamFile.cpp b/source/Core/StreamFile.cpp
index 2285ca9..9f8dd62 100644
--- a/source/Core/StreamFile.cpp
+++ b/source/Core/StreamFile.cpp
@@ -49,7 +49,8 @@ StreamFile::StreamFile (FILE *fh, bool transfer_ownership) :
StreamFile::StreamFile (const char *path) :
Stream (),
- m_file (path, File::eOpenOptionWrite | File::eOpenOptionCanCreate, lldb::eFilePermissionsFileDefault)
+ m_file (path, File::eOpenOptionWrite | File::eOpenOptionCanCreate | File::eOpenOptionCloseOnExec,
+ lldb::eFilePermissionsFileDefault)
{
}
OpenPOWER on IntegriCloud