[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/49814] New: Reading (resp. writing) from Pipe.SourceChann
From: |
quentin.sabah at gmail dot com |
Subject: |
[Bug classpath/49814] New: Reading (resp. writing) from Pipe.SourceChannel (resp. to Pipe.SinkChannel) fails |
Date: |
Fri, 22 Jul 2011 12:07:44 +0000 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49814
Summary: Reading (resp. writing) from Pipe.SourceChannel (resp.
to Pipe.SinkChannel) fails
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: address@hidden
ReportedBy: address@hidden
Reading (resp. writing) from Pipe.SourceChannel (resp. Pipe.SinkChannel) fails.
At the lowest level, reading and writing ends of the pipe are mixed up. In the
current implementation, read operations are carried against the write-only
file-descriptor of the (unix) pipe and write operations are carried against the
read-only file-descriptor.
The solution consists in reversing the affectation of the pipe's file
descriptors to their respective (Sink/Source)Channel. This modification is
possible at two locations:
- in the gnu.java.nio.PipeImpl constructor
- or in the JNI implementation of VMPipe.pipe()
Depending on the semantic given to the return value of VMPipe.pipe().
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/49814] New: Reading (resp. writing) from Pipe.SourceChannel (resp. to Pipe.SinkChannel) fails,
quentin.sabah at gmail dot com <=