previous: >>108451485
#define __NR_setsid 112
#define __NR_getsid 124
https://man7.org/linux/man-pages/man2/setsid.2.html
https://man7.org/linux/man-pages/man2/getsid.2.html
tl;dr:
control process sessions
what is a session? hell if i know! but from what i understand they're important for terminals. see https://man7.org/linux/man-pages/man7/credentials.7.html
i have been wanting to dig into the guts of terminals for a while in order to learn more about what makes them tick, but my god is the documentation confusing. maybe i will try to AImaxx and have the robot explain them to me like i am retarded
anyone who knows more about this subject is super encouraged to post about it and share what you know. i would be really interested in hearing more
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/