This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/15430] Cannot interrupt blocking I/O calls with close()
- From: "daney at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 15 Nov 2005 19:11:58 -0000
- Subject: [Bug libgcj/15430] Cannot interrupt blocking I/O calls with close()
- References: <bug-15430-6651@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from daney at gcc dot gnu dot org 2005-11-15 19:11 -------
Subject: Bug 15430
Author: daney
Date: Tue Nov 15 19:11:53 2005
New Revision: 107036
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107036
Log:
PR libgcj/15430
* gnu/java/net/natPlainSocketImplPosix.cc (throw_on_sock_closed): New
function.
(accept): Call it.
(close): Call shutdown before closing.
(read()): Call read_helper with proper parameters.
(read(buffer, int, int)): Likewise.
(read_helper): Pass pointer to the PlainSocketImpl, remove native_fd
and timeout parameters. Make prototype to match. Use
pointer to PlainSocketImpl to access members. Call throw_on_sock_closed
in two places.
Modified:
trunk/libjava/ChangeLog
trunk/libjava/gnu/java/net/natPlainSocketImplPosix.cc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15430