[RTEMS Project] #2728: Pipes use wrong semaphore for mutual exclusion

RTEMS trac trac at rtems.org
Mon Jun 6 09:07:13 UTC 2016


#2728: Pipes use wrong semaphore for mutual exclusion
-----------------------------+-----------------------------
 Reporter:  sebastian.huber  |      Owner:  sebastian.huber
     Type:  defect           |     Status:  new
 Priority:  normal           |  Milestone:  4.12
Component:  cpukit           |    Version:  4.10
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 {{{
 cpukit/libfs/src/pipe/fifo.c-      sc = rtems_semaphore_create(
 cpukit/libfs/src/pipe/fifo.c-        rtems_build_name('P', 'I', 'P', 'E'),
 cpukit/libfs/src/pipe/fifo.c-        1,
 cpukit/libfs/src/pipe/fifo.c:        RTEMS_BINARY_SEMAPHORE |
 RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
 cpukit/libfs/src/pipe/fifo.c-        RTEMS_NO_PRIORITY,
 cpukit/libfs/src/pipe/fifo.c-        &pipe_semaphore
 cpukit/libfs/src/pipe/fifo.c-      );
 }}}

 Should use a binary semaphore with inherit priority instead.

--
Ticket URL: <http://devel.rtems.org/ticket/2728>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list