summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2019-01-14 13:42:22 -0800
committerNick Kralevich <nnk@google.com>2019-01-14 13:42:22 -0800
commit07f1c1db854e28eee715bff44d5a75fc30650462 (patch)
treecba323f31844f1c0b669c27f9246cac7102d9472 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent7ae295368dbb3d9b4dfa67231416cfde2bcdadb0 (diff)
Bitmap.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: I0c3b1baa49677a8e4831e1880e2d0ab38e08c6f4
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions