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
Event Timeline
docs/ReleaseNotes.rst | ||
---|---|---|
60 | Please sort checks in alphabetical order. |
Comment Actions
LG with a nit.
clang-tidy/android/CloexecEpollCreateCheck.cpp | ||
---|---|---|
28–32 | nit: Please remove argument comments, they don't add any useful information. |
clang-tidy/android/CloexecEpollCreateCheck.cpp | ||
---|---|---|
28–32 | Done. |
nit: Please remove argument comments, they don't add any useful information.