[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1715336431552843.png (2.08 MB, 1244x5223)
2.08 MB
2.08 MB PNG
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/
>>
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.
>>
File: 1689040282692546.png (16 KB, 272x225)
16 KB
16 KB PNG
>>108244624
>tgkill
>>
File: 1769956682984757.jpg (44 KB, 460x460)
44 KB
44 KB JPG
>>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



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.