summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-06 12:51:59 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-06 12:57:07 +0200
commitc75aa864cf614ec2cc82598eadef6067a7dbe3db (patch)
tree0d972f2631edfc539da367a621baa3b9be4e4988
parenta7f0096b730ebebb0b22b5eacb2ea20cd130344d (diff)
downloadrtems-c75aa864cf614ec2cc82598eadef6067a7dbe3db.tar.bz2
pipe: Use proper semaphore attr for mutex
Close #2728.
-rw-r--r--cpukit/libfs/src/pipe/fifo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c
index 76550ddd06..104ecb5d9d 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;