diff options
author | Nick Kralevich <nnk@google.com> | 2019-01-14 13:52:43 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2019-01-14 13:53:40 -0800 |
commit | 396497085a02f2988d15d54e22cb531dd76254f0 (patch) | |
tree | af6cf95b5b33603e47c2230db33e320b2da9feef /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 7ae295368dbb3d9b4dfa67231416cfde2bcdadb0 (diff) |
sharedmem.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)
Replace calls to dup() with fcntl(F_DUPFD_CLOEXEC). The only difference
between the two is that O_CLOEXEC is set on the newly duped file
descriptor. This helps address file descriptor leaks crossing an exec()
boundary.
Test: compiles and boots
Change-Id: I95218331382b7a3432d31a46c173009dc4df1a6b
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions