Skip to content

Pidfd enhancements #1447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 of 8 tasks
rusty-snake opened this issue Apr 11, 2025 · 0 comments
Open
2 of 8 tasks

Pidfd enhancements #1447

rusty-snake opened this issue Apr 11, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@rusty-snake
Copy link
Contributor

rusty-snake commented Apr 11, 2025

  • Update pidfd constants and types (Linux 6.9-6.15) rust-lang/libc#4402
  • PidfdFlags::THREAD = PIDFD_THREAD
  • pidfd_send_signal (Add support for pidfd_send_signal #992) is in rustix::not_implemented::yet and rustix::process (Remove pidfd_send_signal from not_implemented #1448)
  • PIDFD_SIGNAL_THREAD, PIDFD_SIGNAL_THREAD_GROUP and PIDFD_SIGNAL_PROCESS_GROUP.
    • Because the rustix::process::pidfd_send_signal interface does not expose an (empty) flags argument and adding one would be a breaking change, I suggest to deprecated rustix::process::pidfd_send_signal and add rustix::process::pidfd_send_signal_{thread,thread_group,process_group} variants. This time with an empty flags for the future.
    • On the other hand this could require downstream code to switch between these variants to maybe a rustix::process::pidfd_send_signal_with_flags (name tbd) is also a thing.
  • PIDFD_SELF and PIDFD_SELF_PROCESS descriptors implemented in rustix::process like rustix::fs::CWD is implemented.
  • PIDFD_GET_*_NAMESPACE ioctls. Either as one function with an non-exhaustive enum argument or as separated for functions for each ioctl.
  • PIDFD_GET_INFO ioctl, pidfd_info struct, PIDFD_INFO_* bitflags
    • PIDFD_INFO_EXIT
@sunfishcode sunfishcode added the enhancement New feature or request label Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants