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

Commit c998eaa1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents ebbe2c45 2113caea
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.