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 | |
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 '')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <chrisj@rtems.org> + + PR 1577/filesystem + * libfs/src/pipe/fifo.c: Fixed the error codes returned on open. + 2010-06-23 Chris Johns <chrisj@rtems.org> * 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; } } |