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

Commit d61cf646 authored by Abhijeet Kaur's avatar Abhijeet Kaur Committed by android-build-merger
Browse files

Merge "Set close-on-exec flag for bugreportz socket in dumpstate" am: c998eaa1

am: 7a46cda5

Change-Id: If7794ab33010eb4b8200c9bc3984c81c79d96cbc
parents 6ae5ca1a 7a46cda5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3504,7 +3504,7 @@ int open_socket(const char *service) {

    struct sockaddr addr;
    socklen_t alen = sizeof(addr);
    int fd = accept(s, &addr, &alen);
    int fd = accept4(s, &addr, &alen, SOCK_CLOEXEC);

    // Close socket just after accept(), to make sure that connect() by client will get error
    // when the socket is used by the other services.