Merge "Ensure property_set connection sockets are CLOEXEC." am: 1ef5ecaca2 am: 5d6e678b9d am: 31992ebcaf
am: 82fbde6ca1
Change-Id: Ie6d81482f7f1cb38e694fb1428d22143327f99c8
diff --git a/init/property_service.cpp b/init/property_service.cpp
index b2f6411..d323425 100644
--- a/init/property_service.cpp
+++ b/init/property_service.cpp
@@ -381,7 +381,7 @@
static void handle_property_set_fd() {
static constexpr uint32_t kDefaultSocketTimeout = 2000; /* ms */
- int s = accept(property_set_fd, nullptr, nullptr);
+ int s = accept4(property_set_fd, nullptr, nullptr, SOCK_CLOEXEC);
if (s == -1) {
return;
}