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

Commit 785983e8 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski Committed by android-build-merger
Browse files

Merge "Make the SocketListener control pipe O_CLOEXEC."

am: c620463f

Change-Id: I8b7980eedae47bae2ea8fdc808c13d9d68ae53e8
parents 5a59def7 c620463f
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;
    }