From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20203 invoked by alias); 9 Nov 2005 17:46:32 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 20181 invoked by uid 48); 9 Nov 2005 17:46:32 -0000 Date: Wed, 09 Nov 2005 17:46:00 -0000 Message-ID: <20051109174632.20180.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/15430] Cannot interrupt blocking I/O calls with close() In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "daney at gcc dot gnu dot org" X-SW-Source: 2005-q4/txt/msg00317.txt.bz2 List-Id: ------- Comment #5 from daney at gcc dot gnu dot org 2005-11-09 17:46 ------- Created an attachment (id=10189) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10189&action=view) Program that demonstrates how shutdown can solve the problem. Compile socktest.c thusly: gcc -g -o soctest soctest.c -lpthread Then run it and from a different window telnet localhost 4455 Do not type anything in the telnet window. When the socket is shutdown the read returns with a value of zero. I guess we should shutdown as well as close in the socket code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15430