exit_group - Man Page
exit all threads in a process
Library
Standard C library (libc, -lc)
Synopsis
#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).
Description
This system call terminates all threads in the calling process's thread group.
Return Value
This system call does not return.
Standards
Linux.
History
Linux 2.5.35.
Notes
Since glibc 2.3, this is the system call invoked when the _exit(2) wrapper function is called.
See Also
Referenced By
_exit(2), ptrace(2), seccomp(2), stress-ng(1), syscalls(2).
2024-05-02 Linux man-pages 6.9.1