Merge "Make the SocketListener control pipe O_CLOEXEC." into qt-dev
This commit is contained in:
commit
6a2b82e654
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue