threads/143115: [patch] pthread_join() can return EOPNOTSUPP

Nick Black dank at
Sat Jan 23 11:30:02 UTC 2010

>Number:         143115
>Category:       threads
>Synopsis:       [patch] pthread_join() can return EOPNOTSUPP
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-threads
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 23 11:30:02 UTC 2010
>Originator:     Nick Black
>Release:        8.0-RELEASE
Georgia Institute of Technology
[freebsd8](0) $ uname -a
FreeBSD freebsd8.kvmnet 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009     root at  amd64
[freebsd8](0) $ 

The pthread_join(3) man page ought list that EOPNOTSUPP can be returned from pthread_join(3) when multiple callers join on the same thread. I've included a trivial patch.
man pthread_join
Apply patch

Patch attached with submission follows:

--- pthread_join.3-EOPNOTSUPP.diff begins here ---
--- pthread_join.3	2010-01-23 06:08:01.000000000 -0500
+++ pthread_join.3.pristine	2010-01-23 06:06:25.000000000 -0500
@@ -95,9 +95,6 @@
 A deadlock was detected or the value of
 .Fa thread
 specifies the calling thread.
-Another caller is already waiting on
-.Fa thread .
 .Xr wait 2 ,


More information about the freebsd-threads mailing list