[RTEMS Project] #2484: pipe function always returns -1 and does not create subsequent pairs after the first pair is created
RTEMS trac
trac at rtems.org
Mon Dec 7 17:33:10 UTC 2015
#2484: pipe function always returns -1 and does not create subsequent pairs after
the first pair is created
-------------------------+-------------------------------
Reporter: stevehelmer | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 4.10.3
Component: filesystem | Version: 4.10
Severity: normal | Keywords: pipe, pipe_create
-------------------------+-------------------------------
There are two bugs in the version 4.10.2 cpukit/libfs/src/pipe/pipe.c.
The first one is in the call to rtems_filesystem_evaluate_path, the length
of "/tmp" should be 4 not 3.
Second bug is at the end of the function pipe_create. Upon success it
should return 0 not -1. The end of the code should look something like
the following:
if (err == 0)
return 0;
else
rtems_set_errno_and_return_minus_one(err);
--
Ticket URL: <http://devel.rtems.org/ticket/2484>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list