diff options
author | Chris Johns <chrisj@rtems.org> | 2010-06-23 05:01:46 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2010-06-23 05:01:46 +0000 |
commit | 68b49f1955011290cc58fe2e917ecdf4beeb9477 (patch) | |
tree | dd3bbea7b5254a13c1bd5bfdbed52d6444ff1646 /cpukit/libfs/src/pipe | |
parent | 2010-06-23 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-68b49f1955011290cc58fe2e917ecdf4beeb9477.tar.bz2 |
2010-06-23 Chris Johns <chrisj@rtems.org>
PR 1577/filesystem
* libfs/src/pipe/fifo.c: Fixed the error codes returned on open.
Diffstat (limited to 'cpukit/libfs/src/pipe')
-rw-r--r-- | cpukit/libfs/src/pipe/fifo.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } } |