OSDN Git Service

1d1f4c9a5bb07d5b233b93bd8d33434592886323
[linuxjm/LDP_man-pages.git] / original / man2 / exit_group.2
1 .\" Copyright (C) 2004 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .TH EXIT_GROUP 2 2008-11-27 "Linux" "Linux Programmer's Manual"
24 .SH NAME
25 exit_group \- exit all threads in a process
26 .SH SYNOPSIS
27 .nf
28 .B #include <linux/unistd.h>
29 .sp
30 .BI "void exit_group(int " status );
31 .fi
32 .SH DESCRIPTION
33 This system call is equivalent to
34 .BR exit (2)
35 except that it terminates not only the calling thread, but all threads
36 in the calling process's thread group.
37 .SH "RETURN VALUE"
38 This system call does not return.
39 .SH VERSIONS
40 This call is present since Linux 2.5.35.
41 .SH "CONFORMING TO"
42 This call is Linux-specific.
43 .SH NOTES
44 Since glibc 2.3, this is the system call invoked when the
45 .BR exit (2)
46 wrapper function is called.
47 .SH "SEE ALSO"
48 .BR exit (2)