Add new linux-only API process::Child::pidfd
#6281
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-process
Module: tokio/process
Is your feature request related to a problem? Please describe.
Now that #6152 is merged, I think it's reasonable to expose the underlying pidfd we use to the user since AFAIK there are two syscalls that must take pidfd to work:
process_madvise
:madvice
but for another process if the caller hasPTRACE_MODE_READ_FSCREDS
andCAP_SYS_NICE
process_vm_readv
: read or write virtual memory of another process if the caller hasPTRACE_MODE_ATTACH_REALCREDS
Describe the solution you'd like
This API is modeled after unstable libstd API
std::os::linux::process::ChildExt
:Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: