previous: >>108236633
#define __NR_kill 62
#define __NR_tkill 200
#define __NR_tgkill 234
https://man7.org/linux/man-pages/man2/kill.2.html
https://man7.org/linux/man-pages/man2/tkill.2.html
tl;dr:
signal processes, or specific threads within processes
this aspect is pretty neat. it's a useful trick that not everyone knows about
>If sig is 0, then no signal is sent, but existence and permission checks are still performed; this can be used to check for the existence of a process ID or process group ID that the caller is permitted to signal.
other than that, though, it's breddy simple. not much to say about it. i guess it's convenient to be able to raise(SIGSTOP)
and perform a bit of process introspection without having to bust out gdb. so, if you haven't tried that before, i recommend it
relevant resources:
man man
man syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/