public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/4392] New: The pthread_mutex_trylock function returns EDEADLK instead of EBUSY
@ 2007-04-18 17:11 newdimm at gmail dot com
2007-04-28 4:24 ` [Bug nptl/4392] " drepper at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: newdimm at gmail dot com @ 2007-04-18 17:11 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug nptl/4392] The pthread_mutex_trylock function returns EDEADLK instead of EBUSY
2007-04-18 17:11 [Bug nptl/4392] New: The pthread_mutex_trylock function returns EDEADLK instead of EBUSY newdimm at gmail dot com
@ 2007-04-28 4:24 ` drepper at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2007-04-28 4:24 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2007-04-28 05:24 -------
I made an appropriate change only because it simplifies the code. It's not the
right behavior IMO.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-28 4:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-18 17:11 [Bug nptl/4392] New: The pthread_mutex_trylock function returns EDEADLK instead of EBUSY newdimm at gmail dot com
2007-04-28 4:24 ` [Bug nptl/4392] " drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).