Add tracking issue and link to man-page

This commit is contained in:
Dominik Stolz
2021-03-10 11:21:01 +01:00
parent 619fd96868
commit c3321d3eb3
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
//! Linux-specific extensions to primitives in the `std::process` module. //! Linux-specific extensions to primitives in the `std::process` module.
#![unstable(feature = "linux_pidfd", issue = "none")] #![unstable(feature = "linux_pidfd", issue = "82971")]
use crate::io::Result; use crate::io::Result;
use crate::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; use crate::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
@@ -31,13 +31,14 @@ use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
/// ///
/// // The file descriptor will be closed when `pidfd` is dropped. /// // The file descriptor will be closed when `pidfd` is dropped.
/// ``` /// ```
/// Refer to the man page of `pidfd_open(2)` for further details. /// Refer to the man page of [`pidfd_open(2)`] for further details.
/// ///
/// [`Command`]: process::Command /// [`Command`]: process::Command
/// [`create_pidfd`]: CommandExt::create_pidfd /// [`create_pidfd`]: CommandExt::create_pidfd
/// [`Child`]: process::Child /// [`Child`]: process::Child
/// [`pidfd`]: fn@ChildExt::pidfd /// [`pidfd`]: fn@ChildExt::pidfd
/// [`take_pidfd`]: ChildExt::take_pidfd /// [`take_pidfd`]: ChildExt::take_pidfd
/// [`pidfd_open(2)`]: https://man7.org/linux/man-pages/man2/pidfd_open.2.html
#[derive(Debug)] #[derive(Debug)]
pub struct PidFd { pub struct PidFd {
inner: FileDesc, inner: FileDesc,

View File

@@ -693,7 +693,7 @@ impl ExitStatusError {
} }
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
#[unstable(feature = "linux_pidfd", issue = "none")] #[unstable(feature = "linux_pidfd", issue = "82971")]
impl crate::os::linux::process::ChildExt for crate::process::Child { impl crate::os::linux::process::ChildExt for crate::process::Child {
fn pidfd(&self) -> io::Result<&PidFd> { fn pidfd(&self) -> io::Result<&PidFd> {
self.handle self.handle