diff options
| author | Dominik Stolz <d.stolz@tum.de> | 2021-02-06 14:15:49 +0100 |
|---|---|---|
| committer | Dominik Stolz <d.stolz@tum.de> | 2021-07-21 10:49:11 +0200 |
| commit | 619fd96868b2cc83b7f205ff11ff897aebb5ef93 (patch) | |
| tree | 56ad0f7f11c5e34f85fec0cf659b29981943c4d5 /src/test/ui/command/command-create-pidfd.rs | |
| parent | ef03de2e6a4c28543941a228e0c42bcf2dc61df6 (diff) | |
| download | rust-619fd96868b2cc83b7f205ff11ff897aebb5ef93.tar.gz rust-619fd96868b2cc83b7f205ff11ff897aebb5ef93.zip | |
Add PidFd type and seal traits
Improve docs Split do_fork into two Make do_fork unsafe Add target attribute to create_pidfd field in Command Add method to get create_pidfd value
Diffstat (limited to 'src/test/ui/command/command-create-pidfd.rs')
| -rw-r--r-- | src/test/ui/command/command-create-pidfd.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/command/command-create-pidfd.rs b/src/test/ui/command/command-create-pidfd.rs index 248ae3457d7..db728be09df 100644 --- a/src/test/ui/command/command-create-pidfd.rs +++ b/src/test/ui/command/command-create-pidfd.rs @@ -1,13 +1,13 @@ // run-pass -// linux-only - pidfds are a linux-specific concept +// only-linux - pidfds are a linux-specific concept #![feature(linux_pidfd)] use std::os::linux::process::{CommandExt, ChildExt}; use std::process::Command; fn main() { - // We don't assert the precise value, since the standard libarary - // may be opened other file descriptors before our code ran. + // We don't assert the precise value, since the standard library + // might have opened other file descriptors before our code runs. let _ = Command::new("echo") .create_pidfd(true) .spawn() |
