]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/pthread_kill_other_threads_np.3
All pages: Remove the 5th argument to .TH
[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.\"
5fbde956 4.\" SPDX-License-Identifier: Linux-man-pages-copyleft
c67e8ae9 5.\"
45186a5d 6.TH PTHREAD_KILL_OTHER_THREADS_NP 3 2021-03-22 "Linux man-pages (unreleased)"
c67e8ae9
MK
7.SH NAME
8pthread_kill_other_threads_np \- terminate all other threads in process
1be45b14
AC
9.SH LIBRARY
10POSIX threads library
8fc3b2cf 11.RI ( libpthread ", " \-lpthread )
c67e8ae9
MK
12.SH SYNOPSIS
13.nf
14.B #include <pthread.h>
dbfe9c70 15.PP
c67e8ae9
MK
16.B void pthread_kill_other_threads_np(void);
17.fi
18.SH DESCRIPTION
19.BR pthread_kill_other_threads_np ()
33a0ccb2 20has an effect only in the LinuxThreads threading implementation.
c67e8ae9
MK
21On that implementation,
22calling this function causes the immediate termination of
23all threads in the application,
24except the calling thread.
1f08fc80 25The cancelation state and cancelation type of the
c67e8ae9
MK
26to-be-terminated threads are ignored,
27and the cleanup handlers are not called in those threads.
28.\" .SH VERSIONS
29.\" Available since glibc 2.0
f1df713a 30.SH ATTRIBUTES
b3529074
PH
31For an explanation of the terms used in this section, see
32.BR attributes (7).
c466875e
MK
33.ad l
34.nh
b3529074
PH
35.TS
36allbox;
c466875e 37lbx lb lb
b3529074
PH
38l l l.
39Interface Attribute Value
40T{
f1df713a 41.BR pthread_kill_other_threads_np ()
b3529074
PH
42T} Thread safety MT-Safe
43.TE
c466875e
MK
44.hy
45.ad
46.sp 1
3113c7f3 47.SH STANDARDS
047cb380 48This function is a nonstandard GNU extension;
0a96a9f0 49hence the suffix "_np" (nonportable) in the name.
c67e8ae9
MK
50.SH NOTES
51.BR pthread_kill_other_threads_np ()
52is intended to be called just before a thread calls
53.BR execve (2)
54or a similar function.
55This function is designed to address a limitation in the obsolete
56LinuxThreads implementation whereby the other threads of an application
57are not automatically terminated (as POSIX.1-2001 requires) during
58.BR execve (2).
847e0d88 59.PP
c67e8ae9
MK
60In the NPTL threading implementation,
61.BR pthread_kill_other_threads_np ()
62exists, but does nothing.
63(Nothing needs to be done,
64because the implementation does the right thing during an
65.BR execve (2).)
47297adb 66.SH SEE ALSO
c67e8ae9 67.BR execve (2),
3e5c319e 68.BR pthread_cancel (3),
c67e8ae9
MK
69.BR pthread_setcancelstate (3),
70.BR pthread_setcanceltype (3),
c67e8ae9 71.BR pthreads (7)