commit | d4d2c2f9ac5a16e1350cdcca6069735ed1a4ea3a | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Wed Dec 23 18:58:05 2015 -0800 |
committer | Nick Kralevich <nnk@google.com> | Wed Dec 23 18:58:05 2015 -0800 |
tree | c4bb70448a284af9d86bd49870d2c0d2941126e8 | |
parent | 05099e9070a0d44e6af76ba6022b69c0cdbcc06d [diff] [blame] |
More O_CLOEXEC Change-Id: I31991ed089f395174857e86e509b8190ad98f92a
diff --git a/ProcessState.cpp b/ProcessState.cpp index 821ab6c..33fe26c 100644 --- a/ProcessState.cpp +++ b/ProcessState.cpp
@@ -310,9 +310,8 @@ 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) {