Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create an eventfd object with
EFD_CLOEXEC
flag
The file descriptor `irq_notify_fd` does not have the close-on-exec (`FD_CLOEXEC`) flag so it possibly leaks to child processes. This adds an `EFD_CLOEXEC` flag to the second argument of the `exentfd(2)` call, which tells it to set an `FD_CLOEXEC` flag on the new file descriptor. Signed-off-by: Kenta Sato <tosainu.maple@gmail.com>
- Loading branch information