commit | e104df94836ebf34d7f1a8654a9795b0a7619fda | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon Jan 14 14:03:36 2019 -0800 |
committer | Nick Kralevich <nnk@google.com> | Mon Jan 14 14:05:06 2019 -0800 |
tree | cdaa4fb58f042672a71217e51aa65b5cfd025b68 | |
parent | 7ae295368dbb3d9b4dfa67231416cfde2bcdadb0 [diff] |
CursorWindow.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: Icc2ff2f7f398905aa8283c8797898114d34a9829