summaryrefslogtreecommitdiff
path: root/libutils
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-12-18 23:05:34 -0800
committerandroid-build-merger <android-build-merger@google.com>2015-12-18 23:05:34 -0800
commit261952e570997b1714971882890f4b0414449291 (patch)
treee3ffc0903913b893fd45db3cdf8a7325c57329fc /libutils
parentf2d78c920b4230ba38e718ac37c8ef730df82eed (diff)
parent890cd997098795b7a58c1d56c49c23895da7b4f9 (diff)
Merge "more O_CLOEXEC" am: 920d637d25
am: 890cd99709 * commit '890cd997098795b7a58c1d56c49c23895da7b4f9': more O_CLOEXEC
Diffstat (limited to 'libutils')
-rw-r--r--libutils/Looper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libutils/Looper.cpp b/libutils/Looper.cpp
index b14884b33..952c992f1 100644
--- a/libutils/Looper.cpp
+++ b/libutils/Looper.cpp
@@ -74,7 +74,7 @@ Looper::Looper(bool allowNonCallbacks) :
mAllowNonCallbacks(allowNonCallbacks), mSendingMessage(false),
mPolling(false), mEpollFd(-1), mEpollRebuildRequired(false),
mNextRequestSeq(0), mResponseIndex(0), mNextMessageUptime(LLONG_MAX) {
- mWakeEventFd = eventfd(0, EFD_NONBLOCK);
+ mWakeEventFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
LOG_ALWAYS_FATAL_IF(mWakeEventFd < 0, "Could not make wake event fd: %s",
strerror(errno));