We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6687a3f commit 0ce3619Copy full SHA for 0ce3619
library/std/src/sys/pal/unix/process/process_unix.rs
@@ -877,6 +877,12 @@ pub struct Process {
877
878
impl Process {
879
#[cfg(target_os = "linux")]
880
+ /// # Safety
881
+ ///
882
+ /// `pidfd` must either be -1 (representing no file descriptor) or a valid, exclusively owned file
883
+ /// descriptor (See [I/O Safety]).
884
885
+ /// [I/O Safety]: crate::io#io-safety
886
unsafe fn new(pid: pid_t, pidfd: pid_t) -> Self {
887
use crate::os::unix::io::FromRawFd;
888
use crate::sys_common::FromInner;
0 commit comments