Opened on 12/07/15 at 17:33:10
Last modified on 01/23/17 at 13:50:24
#2484 assigned defect
pipe function always returns -1 and does not create subsequent pairs after the first pair is created
Reported by: | Steve Helmer | Owned by: | Needs Funding |
---|---|---|---|
Priority: | normal | Milestone: | Indefinite |
Component: | fs | Version: | 4.10 |
Severity: | normal | Keywords: | pipe, pipe_create |
Cc: | Blocked By: | ||
Blocking: |
Description
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);
Attachments (2)
Change History (7)
comment:1 follow-up: 3 Changed on 12/07/15 at 17:35:52 by Joel Sherrill
Changed on 12/07/15 at 17:39:13 by Steve Helmer
Updated version of pipe_create
Changed on 12/07/15 at 17:46:59 by Steve Helmer
Attachment: | pipe_test.c added |
---|
Verification test of pipe function call.
comment:3 Changed on 12/07/15 at 17:47:56 by Steve Helmer
Replying to joel.sherrill:
Can you provide a patch?
The title says you can't create a second set. Do you have a simple test case for this?
The attached file pipe_test.c verifies if the pipe call succeeds.
comment:4 Changed on 12/08/15 at 06:54:58 by Sebastian Huber
comment:5 Changed on 01/23/17 at 13:50:24 by Sebastian Huber
Milestone: | 4.10.3 → Indefinite |
---|---|
Owner: | set to Needs Funding |
Status: | new → assigned |
In libbsd there is an alternative pipe implementation.
Can you provide a patch?
The title says you can't create a second set. Do you have a simple test case for this?