summaryrefslogtreecommitdiff
path: root/libutils
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-12-18 20:52:37 -0800
committerNick Kralevich <nnk@google.com>2015-12-18 20:57:25 -0800
commitc68c8862f954fdd7c6cc6ebc331bba969bd06919 (patch)
tree532b7fcfb189ce9ca2041db4a638d7e81fc77f94 /libutils
parentaf9daf45244308e6b742ee88896566351fb2829f (diff)
more O_CLOEXEC
Change-Id: I330aef8d6f1fc35d6649995ef312954b84dff555
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));