2 ms·
This is using exit_group() (#231), not exit() (#60): http://main.lv/notes/syscalls.md http://main.lv/notes/syscalls.md https://man7.org/linux/man-pages/man2/e
by js2 4y ago
This is using exit_group() (#231), not exit() (#60):
http://main.lv/notes/syscalls.md http://main.lv/notes/syscalls.md
https://man7.org/linux/man-pages/man2/exit_group.2.html https://man7.org/linux/man-pages/man2/exit_group.2.html
> Note: glibc provides no wrapper for exit_group(), necessitating the use of syscall(2).
Hmm, but elsewhere I find:
> In glibc up to version 2.3, the _exit() wrapper function invoked the kernel system call of the same name. Since glibc 2.3, the wrapper function invokes exit_group(2), in order to terminate all of the threads in a process.
https://www.man7.org/linux/man-pages/man2/_exit.2.html https://www.man7.org/linux/man-pages/man2/_exit.2.html