This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/4392] New: The pthread_mutex_trylock function returns EDEADLK instead of EBUSY
- From: "newdimm at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Apr 2007 17:11:13 -0000
- Subject: [Bug nptl/4392] New: The pthread_mutex_trylock function returns EDEADLK instead of EBUSY
- Reply-to: sourceware-bugzilla at sourceware dot org
According to the IEEE Std 1003.1, 2004 the pthread_mutex_trylock function should
return EBUSY when the mutex could not be acquired because it was already locked
(http://www.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_lock.html).
The current implementation (nptl/pthread_mutex_trylock.c) returns EDEADLK when
the PTHREAD_MUTEX_ERRORCHECK_NP kind mutex is used what is not correct according
to the standard.
--
Summary: The pthread_mutex_trylock function returns EDEADLK
instead of EBUSY
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P2
Component: nptl
AssignedTo: drepper at redhat dot com
ReportedBy: newdimm at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i386
GCC host triplet: i386
GCC target triplet: i386
http://sourceware.org/bugzilla/show_bug.cgi?id=4392
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.