exit_group2
Exit all threads in a process
Usage
#include <sys/syscall.h> /* Definition of SYS_* constants */ #include <unistd.h>
[[noreturn]] void syscall(SYS_exit_group, int status);
Note: glibc provides no wrapper for exit_group(), necessitating the use of syscall(2).
Library
Standard C library (libc, -lc)
Overview
This system call terminates all threads in the calling process's thread group.
Return value
This system call does not return.
Notes
Since glibc 2.3, this is the system call invoked when the _exit(3) wrapper function is called.
Releases
12 releases since Debian 3.1 (Sarge); the text changed 11 times.