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

Implement raise and tgkill #1250

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants