Changeset 18bd1bd4 in rtems


Ignore:
Timestamp:
Jul 9, 2010, 6:39:36 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
f1b2dab2
Parents:
843ad7b
Message:

2010-07-09 Bharath Suri <bharath.s.jois@…>

  • libfs/src/pipe/pipe.c: Check for err before setting the errno and returning -1 to the caller.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r843ad7b r18bd1bd4  
     12010-07-09      Bharath Suri <bharath.s.jois@gmail.com>
     2
     3        * libfs/src/pipe/pipe.c: Check for err before setting the errno
     4        and returning -1 to the caller.
     5
    162010-07-08      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/libfs/src/pipe/pipe.c

    r843ad7b r18bd1bd4  
    7373  unlink(fifopath);
    7474  }
    75 
    76   rtems_set_errno_and_return_minus_one(err);
     75  if(err != 0)
     76    rtems_set_errno_and_return_minus_one(err);
     77  return 0;
    7778}
    7879
Note: See TracChangeset for help on using the changeset viewer.