Yi Kong
1fa946a2f2
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
Exempt-From-Owner-Approval: Cherrypick
Change-Id: Iee772b5c3ed5e2af481e479dab19030f8419290a
Merged-In: Iee772b5c3ed5e2af481e479dab19030f8419290a
(cherry picked from commit f61e2167d5)
2019-08-22 21:41:11 +00:00
..
2019-06-04 06:05:31 +00:00
2019-04-17 16:07:57 -07:00
2019-04-17 16:07:57 -07:00
2019-05-06 12:22:59 -07:00
2019-08-22 21:41:11 +00:00
2019-08-22 20:59:15 +00:00
2019-02-20 10:31:08 -08:00
2019-02-07 22:12:04 +00:00