From a5019a3b957419ab924ef1a8090398fa0481b2de Mon Sep 17 00:00:00 2001 From: Patrick Kelsey Date: Tue, 19 May 2015 02:24:55 +0000 Subject: [PATCH] Added description of POSIX-specified behavior when invoked on a key from within that key's destructor. Reviewed by: jhb, -doc Approved by: jmallett (mentor) MFC after: 3 days Sponsored by: Norse Corp, Inc. --- share/man/man3/pthread_getspecific.3 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/man/man3/pthread_getspecific.3 b/share/man/man3/pthread_getspecific.3 index d59003f4e281..3657e13515f4 100644 --- a/share/man/man3/pthread_getspecific.3 +++ b/share/man/man3/pthread_getspecific.3 @@ -64,6 +64,11 @@ is undefined. The .Fn pthread_getspecific function may be called from a thread-specific data destructor function. +A call to +.Fn pthread_getspecific +for the thread-specific data key being destroyed returns the value NULL, +unless the value is changed (after the destructor starts) by a call to +.Fn pthread_setspecific . .Sh RETURN VALUES The .Fn pthread_getspecific