OSDN Git Service

(split) LDP man-pages の original/ を v3.29 に更新。
[linuxjm/LDP_man-pages.git] / original / man3 / pthread_kill_other_threads_np.3
1 .\" Copyright (c) 2009 Linux Foundation, written by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .TH PTHREAD_KILL_OTHER_THREADS_NP 3 2010-09-09 "Linux" "Linux Programmer's Manual"
25 .SH NAME
26 pthread_kill_other_threads_np \- terminate all other threads in process
27 .SH SYNOPSIS
28 .nf
29 .B #include <pthread.h>
30
31 .B void pthread_kill_other_threads_np(void);
32 .fi
33 .SH DESCRIPTION
34 .BR pthread_kill_other_threads_np ()
35 only has an effect in the LinuxThreads threading implementation.
36 On that implementation,
37 calling this function causes the immediate termination of
38 all threads in the application,
39 except the calling thread.
40 The cancellation state and cancellation type of the
41 to-be-terminated threads are ignored,
42 and the cleanup handlers are not called in those threads.
43 .\" .SH VERSIONS
44 .\" Available since glibc 2.0
45 .SH CONFORMING TO
46 This function is a nonstandard GNU extension;
47 hence the suffix "_np" (nonportable) in the name.
48 .SH NOTES
49 .BR pthread_kill_other_threads_np ()
50 is intended to be called just before a thread calls
51 .BR execve (2)
52 or a similar function.
53 This function is designed to address a limitation in the obsolete
54 LinuxThreads implementation whereby the other threads of an application
55 are not automatically terminated (as POSIX.1-2001 requires) during
56 .BR execve (2).
57
58 In the NPTL threading implementation,
59 .BR pthread_kill_other_threads_np ()
60 exists, but does nothing.
61 (Nothing needs to be done,
62 because the implementation does the right thing during an
63 .BR execve (2).)
64 .SH "SEE ALSO"
65 .BR execve (2),
66 .BR pthread_setcancelstate (3),
67 .BR pthread_setcanceltype (3),
68 .BR pthread_cancel (3),
69 .BR pthreads (7)