]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libgcj/15430 (Cannot interrupt blocking I/O calls with close())
authorDavid Daney <ddaney@avtrex.com>
Tue, 15 Nov 2005 19:11:53 +0000 (19:11 +0000)
committerDavid Daney <daney@gcc.gnu.org>
Tue, 15 Nov 2005 19:11:53 +0000 (19:11 +0000)
commit5e6ff6bda38f8d92ef1522b45cdd78c90557ae1b
treeb24e7f59a4d050f706a76e11e684d9f172e30439
parent7735d402c405f05343b3ea732426eb5ca4b43b6a
re PR libgcj/15430 (Cannot interrupt blocking I/O calls with close())

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.

From-SVN: r107036
libjava/ChangeLog
libjava/gnu/java/net/natPlainSocketImplPosix.cc