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

Commit c620463f authored by Maciej Żenczykowski's avatar Maciej Żenczykowski Committed by Gerrit Code Review
Browse files

Merge "Make the SocketListener control pipe O_CLOEXEC."

parents 54785507 dae01953
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ int SocketListener::startListener(int backlog) {
    } else if (!mListen)
        mClients[mSock] = new SocketClient(mSock, false, mUseCmdNum);

    if (pipe(mCtrlPipe)) {
    if (pipe2(mCtrlPipe, O_CLOEXEC)) {
        SLOGE("pipe failed (%s)", strerror(errno));
        return -1;
    }