pub(crate) fn prog_fd_clone(prog: &Program<'_>) -> Result<Option<OwnedFd>>Expand description
Duplicate @prog’s fd, None for programs that were not loaded and thus have no fd, prog.as_fd() on those would construct a BorrowedFd from an invalid fd. Errors only when a loaded program’s fd cannot be duplicated.