rustix icon indicating copy to clipboard operation
rustix copied to clipboard

Implement `raise` and `tgkill`

Open joshtriplett opened this issue 1 year ago • 1 comments

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".

joshtriplett avatar Jan 04 '25 16:01 joshtriplett

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 avatar Jan 04 '25 22:01 sunfishcode