diff options
| author | 2019-01-14 11:51:50 -0800 | |
|---|---|---|
| committer | 2019-01-14 11:53:07 -0800 | |
| commit | 876a049fd49f26dbb1607a285ed740ab8ffc8767 (patch) | |
| tree | 8724022b257171cc489d7b12f7ebf154ab11fb06 /libs/gui/BufferQueueThreadState.cpp | |
| 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
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions