diff --git a/man2/pidfd_open.2 b/man2/pidfd_open.2 index 1776700b0..dc5232760 100644 --- a/man2/pidfd_open.2 +++ b/man2/pidfd_open.2 @@ -256,6 +256,7 @@ main(int argc, char *argv[]) printf("Events (0x%x): POLLIN is %sset\en", pollfd.revents, (pollfd.revents & POLLIN) ? "" : "not "); + close(pidfd); exit(EXIT_SUCCESS); } .fi