HomePhabricator

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

Authored by george.burgess.iv on Jun 5 2019, 10:21 PM.

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

llvm-svn: 362672