commit | 07f1c1db854e28eee715bff44d5a75fc30650462 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon Jan 14 13:42:22 2019 -0800 |
committer | Nick Kralevich <nnk@google.com> | Mon Jan 14 13:42:22 2019 -0800 |
tree | cba323f31844f1c0b669c27f9246cac7102d9472 | |
parent | 7ae295368dbb3d9b4dfa67231416cfde2bcdadb0 [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