This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/4392] New: The pthread_mutex_trylock function returns EDEADLK instead of EBUSY


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]