commit | f61e2167d5352b63eb34a086cdcb0dfec485bdf0 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Thu Aug 15 13:27:46 2019 -0700 |
committer | Yi Kong <yikong@google.com> | Thu Aug 15 15:27:33 2019 -0700 |
tree | a417ebd00b8852ec9fafbd49932a793a8569a6ad | |
parent | fba8f5688841429ef2277c44d0b1e07e01451507 [diff] |
Fix android-cloexec-pipe clang-tidy warning The upcoming clang-tidy update finds a new instance of android-cloexec-pipe warning: FileUtilsTests.cpp:72:13: error: prefer pipe2() with O_CLOEXEC to avoid leaking file descriptors to child processes ASSERT_EQ(pipe(pipefd), 0); ^~~~~~~~~~~~ pipe2(pipefd, O_CLOEXEC) Apply the suggested fix by clang-tidy. Test: build Bug: 131328001 Change-Id: Iee772b5c3ed5e2af481e479dab19030f8419290a