aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-08-30 09:22:46 +1200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-08-31 07:23:08 +1200
commit46305699f773f3500d8527f6987500db230aa022 (patch)
tree0b3391f4ffa0da710519ca20a70a0553ff024f1e
parent1f73bfaf6ed2e025480e639a2b55c4180eb8860f (diff)
downloadman-pages-46305699f773f3500d8527f6987500db230aa022.tar.gz
pthread_join.3: Note that the caller might do clean up after joining with a thread
Reported-by: Mats Wichmann <mats@wichmann.us> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/pthread_join.33
1 files changed, 3 insertions, 0 deletions
diff --git a/man3/pthread_join.3 b/man3/pthread_join.3
index 16cac3548d..ef216280d9 100644
--- a/man3/pthread_join.3
+++ b/man3/pthread_join.3
@@ -114,6 +114,9 @@ POSIX.1-2001, POSIX.1-2008.
After a successful call to
.BR pthread_join (),
the caller is guaranteed that the target thread has terminated.
+The caller may then choose to do any clean-up that is required
+after termination of the thread (e.g., freeing memory or other
+resources that were allocated to the target thread).
Joining with a thread that has previously been joined results in
undefined behavior.