commit | 876a049fd49f26dbb1607a285ed740ab8ffc8767 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon Jan 14 11:51:50 2019 -0800 |
committer | Nick Kralevich <nnk@google.com> | Mon Jan 14 11:53:07 2019 -0800 |
tree | 8724022b257171cc489d7b12f7ebf154ab11fb06 | |
parent | 7ab76b1c7d7d3f667cb58789295f62e7eb9e26c6 [diff] |
BufferHubBuffer.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 Bug: 120983106 Change-Id: I2f705e0666c5276ad5239da283d5ee91561e8579