We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8381c2 commit a2f42c0Copy full SHA for a2f42c0
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]: std::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