pipe: Use proper semaphore attr for mutex

Close #2728.
This commit is contained in:
Sebastian Huber
2016-06-06 12:51:59 +02:00
parent a7f0096b73
commit c75aa864cf

View File

@@ -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;