[rtems commit] pipe: Use proper semaphore attr for mutex

Sebastian Huber sebh at rtems.org
Mon Jun 6 11:16:35 UTC 2016


Module:    rtems
Branch:    master
Commit:    c75aa864cf614ec2cc82598eadef6067a7dbe3db
Changeset: http://git.rtems.org/rtems/commit/?id=c75aa864cf614ec2cc82598eadef6067a7dbe3db

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jun  6 12:51:59 2016 +0200

pipe: Use proper semaphore attr for mutex

Close #2728.

---

 cpukit/libfs/src/pipe/fifo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c
index 76550dd..104ecb5 100644
--- a/cpukit/libfs/src/pipe/fifo.c
+++ b/cpukit/libfs/src/pipe/fifo.c
@@ -97,8 +97,8 @@ static int pipe_alloc(
     goto err_wbar;
   if (rtems_semaphore_create(
         rtems_build_name ('P', 'I', 's', c), 1,
-        RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
-        RTEMS_NO_PRIORITY, &pipe->Semaphore) != RTEMS_SUCCESSFUL)
+        RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY,
+        0, &pipe->Semaphore) != RTEMS_SUCCESSFUL)
     goto err_sem;
 
   *pipep = pipe;




More information about the vc mailing list