Merge "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper."" am: a2157a7d92

am: e7a456fffe

Change-Id: Ia7bdde6738cbdd1a2c38a076fc6ccd82a7542b4f
This commit is contained in:
Josh Gao 2018-05-23 18:59:36 -07:00 committed by android-build-merger
commit b9d6bebf22

View file

@ -28,9 +28,9 @@ struct AdbCloser {
using unique_fd = android::base::unique_fd_impl<AdbCloser>;
#if !defined(_WIN32)
inline bool Pipe(unique_fd* read, unique_fd* write, int flags = 0) {
inline bool Pipe(unique_fd* read, unique_fd* write) {
int pipefd[2];
if (pipe2(pipefd, flags) != 0) {
if (pipe(pipefd) != 0) {
return false;
}
read->reset(pipefd[0]);