projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a59c40
)
Added Close On Exec Attribute for Mutex files (#21455) (#21458)
author
Oded Hanson
<odhanson@microsoft.com>
Mon, 10 Dec 2018 09:51:48 +0000
(11:51 +0200)
committer
Jan Vorlicek
<janvorli@microsoft.com>
Mon, 10 Dec 2018 09:51:48 +0000
(10:51 +0100)
* Added Close On Exec Attribute for mutex files (#21455)
src/pal/src/sharedmemory/sharedmemory.cpp
patch
|
blob
|
history
diff --git
a/src/pal/src/sharedmemory/sharedmemory.cpp
b/src/pal/src/sharedmemory/sharedmemory.cpp
index
af3934a
..
2607712
100644
(file)
--- a/
src/pal/src/sharedmemory/sharedmemory.cpp
+++ b/
src/pal/src/sharedmemory/sharedmemory.cpp
@@
-197,6
+197,8
@@
bool SharedMemoryHelpers::EnsureDirectoryExists(
int SharedMemoryHelpers::Open(LPCSTR path, int flags, mode_t mode)
{
int openErrorCode;
+
+ flags |= O_CLOEXEC;
do
{
int fileDescriptor = InternalOpen(path, flags, mode);