mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-02-07 12:42:17 +08:00
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>