cvs commit: src/lib/libpthread/thread thr_mutex.c

Brian Fundakowski Feldman green at FreeBSD.org
Sat Oct 30 22:06:23 PDT 2004


On Sun, Oct 31, 2004 at 05:03:50AM +0000, Brian Feldman wrote:
> green       2004-10-31 05:03:50 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     lib/libpthread/thread thr_mutex.c 
>   Log:
>   Make pthread_mutex_trylock(3) return EBUSY on failure, as all software
>   packages expect and seems to be most correct according to the slightly-
>   ambiguous standards.
>   
>   MFC after:              1 month
>   Corroborated by:        POSIX <http://tinyurl.com/4uvub>
>   Reviewed by:            silence on threads@

Software such as mozilla projects (using NSPR) and Java have been
broken in various ways by this.  We need to try to be more compatible
with the most popular interpretation of the standards (instead of just
inventing our own) -- usually we're pretty good about this.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green at FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


More information about the cvs-all mailing list