epoll_create() is better to be replaced by epoll_create1() with EPOLL_CLOEXEC flag to avoid file descriptor leakage.
Details
Details
- Reviewers
alexfh aaron.ballman hokein - Commits
- rG41d29b15e89e: [clang-tidy] Add a close-on-exec check on epoll_create() in Android module.
rCTE311029: [clang-tidy] Add a close-on-exec check on epoll_create() in Android module.
rL311029: [clang-tidy] Add a close-on-exec check on epoll_create() in Android module.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
docs/ReleaseNotes.rst | ||
---|---|---|
60 ↗ | (On Diff #106460) | Please sort checks in alphabetical order. |
Comment Actions
LG with a nit.
clang-tidy/android/CloexecEpollCreateCheck.cpp | ||
---|---|---|
27–31 ↗ | (On Diff #110751) | nit: Please remove argument comments, they don't add any useful information. |
clang-tidy/android/CloexecEpollCreateCheck.cpp | ||
---|---|---|
27–31 ↗ | (On Diff #110751) | Done. |