HomePhabricator

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

Authored by chh on Aug 14 2017, 10:45 AM.

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

llvm-svn: 310863