]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/pthread_kill_other_threads_np.3
getopt.3: ffix
[thirdparty/man-pages.git] / man3 / pthread_kill_other_threads_np.3
CommitLineData
c67e8ae9
MK
1.\" Copyright (c) 2009 Linux Foundation, written by Michael Kerrisk
2.\" <mtk.manpages@gmail.com>
3.\"
93015253 4.\" %%%LICENSE_START(VERBATIM)
c67e8ae9
MK
5.\" Permission is granted to make and distribute verbatim copies of this
6.\" manual provided the copyright notice and this permission notice are
7.\" preserved on all copies.
8.\"
9.\" Permission is granted to copy and distribute modified versions of this
10.\" manual under the conditions for verbatim copying, provided that the
11.\" entire resulting derived work is distributed under the terms of a
12.\" permission notice identical to this one.
13.\"
14.\" Since the Linux kernel and libraries are constantly changing, this
15.\" manual page may be incorrect or out-of-date. The author(s) assume no
16.\" responsibility for errors or omissions, or for damages resulting from
17.\" the use of the information contained herein. The author(s) may not
18.\" have taken the same level of care in the production of this manual,
19.\" which is licensed free of charge, as they might when working
20.\" professionally.
21.\"
22.\" Formatted or processed versions of this manual, if unaccompanied by
23.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 24.\" %%%LICENSE_END
c67e8ae9 25.\"
4b8c67d9 26.TH PTHREAD_KILL_OTHER_THREADS_NP 3 2017-09-15 "Linux" "Linux Programmer's Manual"
c67e8ae9
MK
27.SH NAME
28pthread_kill_other_threads_np \- terminate all other threads in process
29.SH SYNOPSIS
30.nf
31.B #include <pthread.h>
dbfe9c70 32.PP
c67e8ae9
MK
33.B void pthread_kill_other_threads_np(void);
34.fi
35.SH DESCRIPTION
36.BR pthread_kill_other_threads_np ()
33a0ccb2 37has an effect only in the LinuxThreads threading implementation.
c67e8ae9
MK
38On that implementation,
39calling this function causes the immediate termination of
40all threads in the application,
41except the calling thread.
42The cancellation state and cancellation type of the
43to-be-terminated threads are ignored,
44and the cleanup handlers are not called in those threads.
45.\" .SH VERSIONS
46.\" Available since glibc 2.0
f1df713a 47.SH ATTRIBUTES
b3529074
PH
48For an explanation of the terms used in this section, see
49.BR attributes (7).
50.TS
51allbox;
52lbw31 lb lb
53l l l.
54Interface Attribute Value
55T{
f1df713a 56.BR pthread_kill_other_threads_np ()
b3529074
PH
57T} Thread safety MT-Safe
58.TE
c67e8ae9 59.SH CONFORMING TO
047cb380 60This function is a nonstandard GNU extension;
0a96a9f0 61hence the suffix "_np" (nonportable) in the name.
c67e8ae9
MK
62.SH NOTES
63.BR pthread_kill_other_threads_np ()
64is intended to be called just before a thread calls
65.BR execve (2)
66or a similar function.
67This function is designed to address a limitation in the obsolete
68LinuxThreads implementation whereby the other threads of an application
69are not automatically terminated (as POSIX.1-2001 requires) during
70.BR execve (2).
847e0d88 71.PP
c67e8ae9
MK
72In the NPTL threading implementation,
73.BR pthread_kill_other_threads_np ()
74exists, but does nothing.
75(Nothing needs to be done,
76because the implementation does the right thing during an
77.BR execve (2).)
47297adb 78.SH SEE ALSO
c67e8ae9 79.BR execve (2),
3e5c319e 80.BR pthread_cancel (3),
c67e8ae9
MK
81.BR pthread_setcancelstate (3),
82.BR pthread_setcanceltype (3),
c67e8ae9 83.BR pthreads (7)