From 68b49f1955011290cc58fe2e917ecdf4beeb9477 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 23 Jun 2010 05:01:46 +0000 Subject: [PATCH] 2010-06-23 Chris Johns PR 1577/filesystem * libfs/src/pipe/fifo.c: Fixed the error codes returned on open. --- cpukit/ChangeLog | 5 +++++ cpukit/libfs/src/pipe/fifo.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 63009e096d..fa261ba508 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2010-06-23 Chris Johns + + PR 1577/filesystem + * libfs/src/pipe/fifo.c: Fixed the error codes returned on open. + 2010-06-23 Chris Johns * rtems/Makefile.am: Remove the stray 'c' file. diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c index 3619a7f702..d306c00395 100644 --- a/cpukit/libfs/src/pipe/fifo.c +++ b/cpukit/libfs/src/pipe/fifo.c @@ -104,7 +104,6 @@ static int pipe_alloc( if (! pipe->Buffer) goto err_buf; - err = -EINTR; if (rtems_barrier_create( rtems_build_name ('P', 'I', 'r', c), RTEMS_BARRIER_MANUAL_RELEASE, 0, @@ -180,7 +179,7 @@ static rtems_status_code pipe_lock(void) if (sc == RTEMS_SUCCESSFUL) { return 0; } else { - return -EINTR; + return -ENOMEM; } }