Skip to content

Conversation

joshtriplett
Copy link
Member

This implements the tgkill system call, and the raise function (which sends a signal to the current thread).

I've implemented these in the runtime module for consistency, though I'd ideally like to have these available somewhere less "beware of dragons".

@sunfishcode
Copy link
Member

Yes, raise and tgkill can go in rustix::thread, and be implemented in the libc backend as well. tgkill is cfg(linux_kernel), and on musl it looks like it'll need to go through syscall.

@sunfishcode sunfishcode added the enhancement New feature or request label Mar 9, 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

Successfully merging this pull request may close these issues.

2 participants