llvm/clang-tools-extra/docs/clang-tidy/checks/android/cloexec-epoll-create.rst

.. title:: clang-tidy - android-cloexec-epoll-create

android-cloexec-epoll-create
============================

The usage of ``epoll_create()`` is not recommended, it's better to use
``epoll_create1()``, which allows close-on-exec.

Examples:

.. code-block:: c++

  epoll_create(size);

  // becomes

  epoll_create1(EPOLL_CLOEXEC);