summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nick Kralevich <nnk@google.com> 2015-12-19 07:13:21 +0000
committer android-build-merger <android-build-merger@google.com> 2015-12-19 07:13:21 +0000
commit4a6a40b06cd0630fc6a3a84189d750c4b970179d (patch)
tree624741d45a3dd6d227434949ce22e8afe6eb0658
parent09736053ba6cae3d1e45a1a2b9676a6d1629c66c (diff)
parenta87b9287a4801ce39f30dbd84c3eac2f66c99992 (diff)
Merge "common_time_server.cpp: more O_CLOEXEC" am: 78d5f90d98
am: a87b9287a4 * commit 'a87b9287a4801ce39f30dbd84c3eac2f66c99992': common_time_server.cpp: more O_CLOEXEC
-rw-r--r--libs/common_time/common_time_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/common_time/common_time_server.cpp b/libs/common_time/common_time_server.cpp
index 01372e00cab8..f72ffaa63712 100644
--- a/libs/common_time/common_time_server.cpp
+++ b/libs/common_time/common_time_server.cpp
@@ -143,7 +143,7 @@ CommonTimeServer::CommonTimeServer()
// Create the eventfd we will use to signal our thread to wake up when
// needed.
- mWakeupThreadFD = eventfd(0, EFD_NONBLOCK);
+ mWakeupThreadFD = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
// seed the random number generator (used to generated timeline IDs)
srand48(static_cast<unsigned int>(systemTime()));