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