Thread #108244624
HomeIndexCatalogAll ThreadsNew ThreadReply
H
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/
+Showing all 15 replies.
>>
not much interest recently, huh...
>>
>>108245007
don't worry syscall anon i like lurking your threads even if nobody else comes
>>
>>108244624
>kill/tkill/tgkill
And which one has the slobber option?
>>
>>108244624
huh, I did indeed not know about the kill(0) variant
>>
>>108245049
you should bump them for me then ;___;
>>108246220
huh?
>>108247518
yeah! it's really handy
>>
>>108245007
I'm very interested and I read each thread but I almost never have anything useful to add.
>>
>If pid equals -1, then sig is sent to every process for which the calling process has permission to send signals, except for process 1 (init), but see below.
I dare somebody to run
kill(-1, 9)
as root.
>>
>>108252088
it just crashes your machine
>>
>>108250252
you can help by bumping!
>>
>>108244624
I like your threads, anon. I'm sorry I never come here and never post, but it's way above my two brain cells. I weep for the day you'll finish covering all of syscalls.

This world will be a sadder place when you're gone, and I mean it, anon.
>>
>>108245049
Same.
>>
>>108244624
>tgkill
>>
>>108252325
lol i think about that every time i use it
there are lots of other funny collisions like that for those of us who are brainrotted enough
>>
>>108252295
True, syscall anon is one of the few real people on here, and I really like syscalls as a thread idea, but I don't know what to contribute. Maybe OP should give us a hint what he expects from his threads, because often times I come here, and have no clue what to write about, other than the fact that I know the syscall and might have used it somewhere...
>>
:^) bumperino

Reply to Thread #108244624


Supported: JPG, PNG, GIF, WebP, WebM, MP4, MP3 (max 4MB)