system/core
Revision | 6a2b82e654c3384617193153a5803e8389bdc06b (tree) |
---|---|
Zeit | 2019-05-10 08:45:07 |
Autor | Maciej Zenczykowski <maze@goog...> |
Commiter | Android (Google) Code Review |
Merge "Make the SocketListener control pipe O_CLOEXEC." into qt-dev
@@ -95,7 +95,7 @@ int SocketListener::startListener(int backlog) { | ||
95 | 95 | } else if (!mListen) |
96 | 96 | mClients[mSock] = new SocketClient(mSock, false, mUseCmdNum); |
97 | 97 | |
98 | - if (pipe(mCtrlPipe)) { | |
98 | + if (pipe2(mCtrlPipe, O_CLOEXEC)) { | |
99 | 99 | SLOGE("pipe failed (%s)", strerror(errno)); |
100 | 100 | return -1; |
101 | 101 | } |