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

Commit ed83cfba authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Clean up CLOEXEC in SocketListener."

parents f405d245 fcd72959
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ void SocketListener::runListener() {

            do {
                alen = sizeof(ss);
                c = accept(mSock, addrp, &alen);
                c = accept4(mSock, addrp, &alen, SOCK_CLOEXEC);
                SLOGV("%s got %d from accept", mSocketName, c);
            } while (c < 0 && errno == EINTR);
            if (c < 0) {
@@ -214,7 +214,6 @@ void SocketListener::runListener() {
                sleep(1);
                continue;
            }
            fcntl(c, F_SETFD, FD_CLOEXEC);
            pthread_mutex_lock(&mClientsLock);
            mClients->push_back(new SocketClient(c, true, mUseCmdNum));
            pthread_mutex_unlock(&mClientsLock);