]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #81825 - voidc:pidfd, r=joshtriplett
authorbors <bors@rust-lang.org>
Sun, 1 Aug 2021 16:45:47 +0000 (16:45 +0000)
committerbors <bors@rust-lang.org>
Sun, 1 Aug 2021 16:45:47 +0000 (16:45 +0000)
commit4e21ef2a4eca12180e24a345d66066fc1e4e36da
treef4a6738e9cc0b047efed979e2f5a9d70b9b851b2
parent2e9c8705e94826da6aebe46512b4e3bbfc9e008f
parent4a832d32f232a68acdabfd29e526d2a4b6366a1c
Auto merge of #81825 - voidc:pidfd, r=joshtriplett

Add Linux-specific pidfd process extensions (take 2)

Continuation of #77168.
I addressed the following concerns from the original PR:

- make `CommandExt` and `ChildExt` sealed traits
- wrap file descriptors in `PidFd` struct representing ownership over the fd
- add `take_pidfd` to take the fd out of `Child`
- close fd when dropped

Tracking Issue: #82971
library/std/src/sys/unix/process/process_common.rs