• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Revision6a2b82e654c3384617193153a5803e8389bdc06b (tree)
Zeit2019-05-10 08:45:07
AutorMaciej Zenczykowski <maze@goog...>
CommiterAndroid (Google) Code Review

Log Message

Merge "Make the SocketListener control pipe O_CLOEXEC." into qt-dev

Ändern Zusammenfassung

Diff

--- a/libsysutils/src/SocketListener.cpp
+++ b/libsysutils/src/SocketListener.cpp
@@ -95,7 +95,7 @@ int SocketListener::startListener(int backlog) {
9595 } else if (!mListen)
9696 mClients[mSock] = new SocketClient(mSock, false, mUseCmdNum);
9797
98- if (pipe(mCtrlPipe)) {
98+ if (pipe2(mCtrlPipe, O_CLOEXEC)) {
9999 SLOGE("pipe failed (%s)", strerror(errno));
100100 return -1;
101101 }