diff options
| author | 2019-01-14 10:37:01 -0800 | |
|---|---|---|
| committer | 2019-01-14 10:37:01 -0800 | |
| commit | c10f60a4871d7e5cfe6b6a33b58c9c3dfd237bf5 (patch) | |
| tree | 6ed578cca56496b9d9dbe4f67be25835cf8014ec /libs/input/PointerController.cpp | |
| parent | b6d32aa5e84748d9b9f51fb11d6efaf4d1e97e66 (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 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions