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

Commit e18c7b10 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:...

Merge "Set close-on-exec flag for bugreportz socket in dumpstate" am: c998eaa1 am: 7a46cda5 am: d61cf646
am: 9d311083

Change-Id: Ib527e8215e30954c34b4f876fad21e0994f61289
parents 5dd64b1e 9d311083
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3505,7 +3505,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.