mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-10 02:56:52 +00:00
Add tracking issue and link to man-page
This commit is contained in:
parent
619fd96868
commit
c3321d3eb3
@ -1,6 +1,6 @@
|
||||
//! 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::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.
|
||||
/// ```
|
||||
/// 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
|
||||
/// [`create_pidfd`]: CommandExt::create_pidfd
|
||||
/// [`Child`]: process::Child
|
||||
/// [`pidfd`]: fn@ChildExt::pidfd
|
||||
/// [`take_pidfd`]: ChildExt::take_pidfd
|
||||
/// [`pidfd_open(2)`]: https://man7.org/linux/man-pages/man2/pidfd_open.2.html
|
||||
#[derive(Debug)]
|
||||
pub struct PidFd {
|
||||
inner: FileDesc,
|
||||
|
@ -693,7 +693,7 @@ impl ExitStatusError {
|
||||
}
|
||||
|
||||
#[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 {
|
||||
fn pidfd(&self) -> io::Result<&PidFd> {
|
||||
self.handle
|
||||
|
Loading…
Reference in New Issue
Block a user