[RTEMS Project] #2170: pthread_mutex_trylock() erroneously returns EDEADLK

RTEMS trac trac at rtems.org
Wed Feb 25 20:01:05 UTC 2015


#2170: pthread_mutex_trylock() erroneously returns EDEADLK
--------------------------+----------------------------
 Reporter:  nick.withers  |       Owner:  joel.sherrill
     Type:  defect        |      Status:  closed
 Priority:  normal        |   Milestone:  4.11
Component:  cpukit        |     Version:  4.11
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+----------------------------
Changes (by Gedare Bloom <gedare@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"c0e01a28dad77063d8edb7f7fe2cee83a5f09b2e/rtems"]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="c0e01a28dad77063d8edb7f7fe2cee83a5f09b2e"
 posix: fix error return code for pthread_mutex_trylock

 pthread_mutex_trylock() should return EBUSY if the mutex is already
 locked. The translations of CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED is
 EDEADLK which is correct for pthread_mutex_lock(). This fixes the
 translation for trylock.

 Closes #2170.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/2170#comment:9>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list