HomePhabricator

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

Description

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

Summary:
inotify_init1() is better to set IN_CLOEXEC flag to avoid file descriptor leakage.

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

Details

Committed
chhAug 14 2017, 10:45 AM
Differential Revision
D35368: [clang-tidy] Add a close-on-exec check on inotify_init1() in Android module.
Parents
rL310862: Merging r310804:
Branches
Unknown
Tags
Unknown