Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f139ba47 authored by Josh Gao's avatar Josh Gao
Browse files

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

This reverts commit 948b3e10.

Reason for revert: mac doesn't have pipe2

Change-Id: Id6a517bb500cbea602839f06452bc5e6d92289f1
parent 948b3e10
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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]);