From 68b49f1955011290cc58fe2e917ecdf4beeb9477 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 23 Jun 2010 05:01:46 +0000 Subject: 2010-06-23 Chris Johns PR 1577/filesystem * libfs/src/pipe/fifo.c: Fixed the error codes returned on open. --- cpukit/libfs/src/pipe/fifo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpukit/libfs/src/pipe') 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; } } -- cgit v1.2.3