Merge "Ensure property_set connection sockets are CLOEXEC."

This commit is contained in:
Treehugger Robot 2017-01-25 18:09:16 +00:00 committed by Gerrit Code Review
commit 1ef5ecaca2
1 changed files with 1 additions and 1 deletions

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;
}