Add tracking issue and link to man-page
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user