From e290321825982efa8a501cddafd047d4cf66c5c3 Mon Sep 17 00:00:00 2001 From: Christian Goeschel Ndjomouo Date: Mon, 12 Jan 2026 13:53:36 -0500 Subject: [PATCH] waitpid: close fd after removal from epoll interest list Signed-off-by: Christian Goeschel Ndjomouo --- misc-utils/waitpid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/misc-utils/waitpid.c b/misc-utils/waitpid.c index d73a393c0..865b537e9 100644 --- a/misc-utils/waitpid.c +++ b/misc-utils/waitpid.c @@ -176,6 +176,7 @@ static void wait_for_exits(const struct waitpid_control *ctl, int epll, assert((size_t) ret <= active_pids); fd = pi->pidfd; epoll_ctl(epll, EPOLL_CTL_DEL, fd, NULL); + close(fd); active_pids -= ret; } } -- 2.47.3