pidfd_open (2) Linux Manual Page
pidfd_open – obtain a file descriptor that refers to a process Synopsis#include <sys/types.h> int pidfd_open(pid_t pid, unsigned int flags);DescriptionThe pidfd_open() system call creates a file descriptor that refers to the process whose PID is specified in pid. The file descriptor is returned as the function result; the close-on-exec flag is set on the file descriptor….
