From b6c8c2bfc00218e08cb66b253b1a3c1a52aeec2f Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Fri, 3 Apr 2020 13:05:09 +0000 Subject: Clarify conditions in which pthread_mutex_destroy(3) returns EBUSY. It happens not just if the mutex is locked by another thread, but also if any other threads refer to the mutex (e.g. by waiting for the lock). ok guenther --- lib/libpthread/man/pthread_mutex_destroy.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libpthread/man/pthread_mutex_destroy.3 b/lib/libpthread/man/pthread_mutex_destroy.3 index 7b61fc5cfea..5be20147a7d 100644 --- a/lib/libpthread/man/pthread_mutex_destroy.3 +++ b/lib/libpthread/man/pthread_mutex_destroy.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_mutex_destroy.3,v 1.10 2013/06/05 03:44:50 tedu Exp $ +.\" $OpenBSD: pthread_mutex_destroy.3,v 1.11 2020/04/03 13:05:08 stsp Exp $ .\" .\" Copyright (c) 1997 Brian Cully .\" All rights reserved. @@ -29,7 +29,7 @@ .\" .\" $FreeBSD: pthread_mutex_destroy.3,v 1.5 1999/08/28 00:03:07 peter Exp $ .\" -.Dd $Mdocdate: June 5 2013 $ +.Dd $Mdocdate: April 3 2020 $ .Dt PTHREAD_MUTEX_DESTROY 3 .Os .Sh NAME @@ -59,7 +59,7 @@ The value specified by is invalid. .It Bq Er EBUSY .Fa mutex -is locked by another thread. +is locked or referenced by another thread. .El .Sh SEE ALSO .Xr pthread_mutex_init 3 , -- cgit v1.2.3