commit | c620463f775871ecc73fe3ebc3c9cb2d699d789c | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Wed Apr 10 17:49:38 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Apr 10 17:49:38 2019 +0000 |
tree | f069fffec4d91f340dddef55e4c14962217b7657 | |
parent | 54785507f01d3d8e923ff5aa168858415d66d7c1 [diff] | |
parent | dae0195380686dbec450e298f4acf47b5f9576e6 [diff] |
Merge "Make the SocketListener control pipe O_CLOEXEC."
diff --git a/libsysutils/src/SocketListener.cpp b/libsysutils/src/SocketListener.cpp index ded5adb..9780606 100644 --- a/libsysutils/src/SocketListener.cpp +++ b/libsysutils/src/SocketListener.cpp
@@ -95,7 +95,7 @@ } 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; }