Skip to content
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

Add support for pidfd_send_signal #992

Open
chenxiaolong opened this issue Jan 16, 2024 · 0 comments
Open

Add support for pidfd_send_signal #992

chenxiaolong opened this issue Jan 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@chenxiaolong
Copy link

It looks like rustix already has support for the other two pidfd syscalls (pidfd_open and pidfd_getfd). Would it be possible to add support for pidfd_send_signal too?

int syscall(SYS_pidfd_send_signal, int pidfd, int sig,
            siginfo_t *_Nullable info, unsigned int flags);

Rustix has abstractions for signal numbers, but I'd imagine the unholy union that is siginfo_t might be a bit painful to wrap. It looks the only other siginfo_t API that's currently wrapped is waitid.

@sunfishcode sunfishcode added the enhancement New feature or request label Jan 16, 2024
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