HomePhabricator

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

Description

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

On Android, pipe() is better to be replaced by pipe2() with O_CLOEXEC
flag to avoid file descriptor leakage.

Patch by Jian Cai!

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

Details

Committed
gbivJun 5 2019, 10:21 PM
Differential Revision
D61967: [clang-tidy] Add a close-on-exec check on pipe() in Android module.
Parents
rL362672: android: add a close-on-exec check on pipe2()
Branches
Unknown
Tags
Unknown