Merge "Make the SocketListener control pipe O_CLOEXEC."

This commit is contained in:
Maciej Żenczykowski 2019-04-10 17:49:38 +00:00 committed by Gerrit Code Review
commit c620463f77
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}