summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2019-01-14 10:37:01 -0800
committerNick Kralevich <nnk@google.com>2019-01-14 10:37:01 -0800
commitc10f60a4871d7e5cfe6b6a33b58c9c3dfd237bf5 (patch)
tree6ed578cca56496b9d9dbe4f67be25835cf8014ec /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parentb6d32aa5e84748d9b9f51fb11d6efaf4d1e97e66 (diff)
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 in multi-threaded processes Test: compiles and boots Change-Id: I6b82a7932593a5e39880fcf3ff6443dab6500094
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions