[PATCH] RE: Testsuite problem
Pétur Runólfsson
peturr02@ru.is
Sat Apr 24 12:25:00 GMT 2004
Zack Weinberg wrote:
> That is logical, but I don't think it conforms with what the code
> does. Specifically, if close calls write and write returns an error,
> I think close returns successfully anyway. Now, that might itself be a
> bug, or I might've gotten confused with the maze of template functions
> all calling each other.
Well, when I tried replacing the call to close with a direct call to
write (see the attached file), write succeeded when the fifo was
opened with (ios_base::in | ios_base::out), but failed with
"Broken Pipe" when the fifo was opened with ios_base::out only.
Petur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9964.cc
Type: application/octet-stream
Size: 2105 bytes
Desc: 9964.cc
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040424/5e2c1346/attachment.obj>
More information about the Libstdc++
mailing list