Yi Kong
9b00f181da
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)
(cherry picked from commit 1fa946a2f2)
2019-08-23 16:46:05 +00:00
..
2019-06-06 09:02:46 -07:00
2019-06-18 17:20:06 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-05-10 11:22:58 -07:00
2019-07-31 15:55:26 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-08-08 09:36:14 -07:00
2019-08-23 16:46:05 +00:00
2019-06-06 09:02:46 -07:00
2019-05-21 13:29:23 -07:00
2019-06-07 18:13:56 +01:00
2019-08-14 16:32:22 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-05-10 11:22:58 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-05-08 09:16:39 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-07-22 07:45:24 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00
2019-06-06 09:02:46 -07:00