HomePhabricator

[clang-tidy] Add a close-on-exec check on accept() in Android module.

Description

[clang-tidy] Add a close-on-exec check on accept() in Android module.

Summary:
accept() is better to be replaced by accept4() with SOCK_CLOEXEC
flag to avoid file descriptor leakage.

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

Details

Committed
chhAug 16 2017, 10:18 AM
Differential Revision
D35362: [clang-tidy] Add a close-on-exec check on accept() in Android module.
Branches
Unknown
Tags
Unknown