[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: 1707107320101799.jpg (106 KB, 843x1159)
106 KB
106 KB JPG
previous: >>108444267

#define __NR_getppid            110

https://man7.org/linux/man-pages/man2/getppid.2.html

tl;dr:
get parent pid

hehe... pp id....
useful for telling whether you're daemonized. really not useful for much else. i guess this is an interesting case, though
>If the caller's parent is in a different PID namespace (see pid_namespaces(7)), getppid() returns 0.

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/
>>
>>108451485
>>If the caller's parent is in a different PID namespace (see pid_namespaces(7)), getppid() returns 0.
>These functions are always successful.
nice docs boys
>>
>>108451485
>getppid
They know where my PP is?!
>>
>>108451645
they're about to find out
>>
>>108451485
>getppid
heheheh
>>
>>108451485
it's actuaally GET pipi'd, it's for rough sex and rape. hope that helps
>>
>>108451485



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