summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Nick Kralevich <nnk@google.com> 2015-12-24 02:59:16 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-12-24 02:59:16 +0000
commit43e4260831cc3d0d96c05fe18a8cad3018b5795f (patch)
tree102d911f13b99265e0ff5eed47dcac5ad18d11b9 /libs/binder/ProcessState.cpp
parent0d77698233ffcbc812c2586693546355ce521603 (diff)
parent0fe7ce375ed6c9fcd86b8bb3a836bc37c9740831 (diff)
Merge "More O_CLOEXEC"
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r--libs/binder/ProcessState.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index 821ab6cb9b..33fe26cfa9 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -310,9 +310,8 @@ void ProcessState::giveThreadPoolName() {
static int open_driver()
{
- int fd = open("/dev/binder", O_RDWR);
+ int fd = open("/dev/binder", O_RDWR | O_CLOEXEC);
if (fd >= 0) {
- fcntl(fd, F_SETFD, FD_CLOEXEC);
int vers = 0;
status_t result = ioctl(fd, BINDER_VERSION, &vers);
if (result == -1) {