Merge "Make the SocketListener control pipe O_CLOEXEC."
This commit is contained in:
commit
c620463f77
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue