NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/53477: typo/bug in a man page



>Number:         53477
>Category:       lib
>Synopsis:       typo/bug in a man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 28 13:50:00 +0000 2018
>Originator:     rudolf
>Release:        HEAD
>Organization:
>Environment:
>Description:
There seems to be a typo/bug in "pthread_cond" manual page: the sentence ``The difference between pthread_cond_broadcast() and pthread_cond_signal() is that the former unblocks all threads waiting for the condition variable, whereas the latter blocks only one waiting thread.'' should in my opinion read ``The difference between pthread_cond_broadcast() and pthread_cond_signal() is that the former unblocks all threads waiting for the condition variable, whereas the latter unblocks only one waiting thread.'' ("blocks" vs. "unblocks").
>How-To-Repeat:
man 3 pthread_cond

read the 4th paragraph of description
>Fix:
diff --git a/lib/libpthread/pthread_cond.3 b/lib/libpthread/pthread_cond.3
index 741543a72..641ace03e 100644
--- a/lib/libpthread/pthread_cond.3
+++ b/lib/libpthread/pthread_cond.3
@@ -128,7 +128,7 @@ The difference between
 and
 .Fn pthread_cond_signal
 is that the former unblocks all threads waiting for the condition variable,
-whereas the latter blocks only one waiting thread.
+whereas the latter unblocks only one waiting thread.
 If no threads are waiting on
 .Fa cond ,
 neither function has any effect.



Home | Main Index | Thread Index | Old Index