Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82fbde6c authored by Robert Sesek's avatar Robert Sesek Committed by android-build-merger
Browse files

Merge "Ensure property_set connection sockets are CLOEXEC." am: 1ef5ecac am: 5d6e678b

am: 31992ebc

Change-Id: I21d6f0f54c2b11246cad808e28155ecced9966db
parents 14f12dda 31992ebc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }