HomePhabricator

android: add a close-on-exec check on pipe2()

Description

android: add a close-on-exec check on pipe2()

On Android, pipe2() is better to set O_CLOEXEC flag to avoid file
descriptor leakage.

Patch by Jian Cai!

Differential Revision: https://reviews.llvm.org/D62049

Details

Committed
gbivJun 5 2019, 10:21 PM
Differential Revision
D62049: [clang-tidy] Add a close-on-exec check on pipe2() in Android module.
Parents
rL362671: Merging r361237:
Branches
Unknown
Tags
Unknown