Debian Codegraph @

upstream/debian-unstable/man2/exit_group.2

raw
1 .\" Copyright 2004, Andries E. Brouwer <[email protected]>
2 .\" Copyright, the authors of the Linux man-pages project
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH exit_group 2 2026-02-08 "Linux man-pages 6.18"
7 .SH NAME
8 exit_group \- exit all threads in a process
9 .SH LIBRARY
10 Standard C library
11 .RI ( libc ,\~ \-lc )
12 .SH SYNOPSIS
13 .nf
14 .BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
15 .B #include <unistd.h>
16 .P
17 .BI "[[noreturn]] void syscall(SYS_exit_group, int " status );
18 .fi
19 .P
20 .IR Note :
21 glibc provides no wrapper for
22 .BR exit_group (),
23 necessitating the use of
24 .BR syscall (2).
25 .SH DESCRIPTION
26 This system call terminates all threads
27 in the calling process's thread group.
28 .SH RETURN VALUE
29 This system call does not return.
30 .SH STANDARDS
31 Linux.
32 .SH HISTORY
33 Linux 2.5.35.
34 .SH NOTES
35 Since glibc 2.3, this is the system call invoked when the
36 .BR _exit (2)
37 wrapper function is called.
38 .SH SEE ALSO
39 .BR _exit (2)