Merge "Ensure property_set connection sockets are CLOEXEC." am: 1ef5ecaca2 am: 5d6e678b9d

am: 31992ebcaf

Change-Id: I21d6f0f54c2b11246cad808e28155ecced9966db
This commit is contained in:
Robert Sesek 2017-01-25 18:28:34 +00:00 committed by android-build-merger
commit 82fbde6ca1

View file

@ -381,7 +381,7 @@ static void handle_property_set(SocketConnection& socket,
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;
}