From: Christian Goeschel Ndjomouo Date: Mon, 12 Jan 2026 18:53:36 +0000 (-0500) Subject: waitpid: close fd after removal from epoll interest list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e290321825982efa8a501cddafd047d4cf66c5c3;p=thirdparty%2Futil-linux.git waitpid: close fd after removal from epoll interest list Signed-off-by: Christian Goeschel Ndjomouo --- 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; } }