From 6e91d3e290572bd6516078136497c1c16af7336d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 31 Mar 2020 14:05:24 +0200 Subject: [PATCH] pidfd_open.2: Mention pidfd_getfd(2) Signed-off-by: Michael Kerrisk --- man2/pidfd_open.2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man2/pidfd_open.2 b/man2/pidfd_open.2 index 225a7479a..70a357eca 100644 --- a/man2/pidfd_open.2 +++ b/man2/pidfd_open.2 @@ -173,6 +173,11 @@ on the file descriptor fails with the error If the PID file descriptor refers to a child of the calling process, then it can be waited on using .BR waitid (2). +.IP * +The +.BR pidfd_getfd (2) +system call can be used to obtain a duplicate of a file descriptor +of another process referred to by a PID file descriptor. .PP The .BR pidfd_open () @@ -253,6 +258,7 @@ main(int argc, char *argv[]) .SH SEE ALSO .BR clone (2), .BR kill (2), +.BR pidfd_getfd (2), .BR pidfd_send_signal (2), .BR poll (2), .BR select (2),