From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13176 invoked by alias); 18 Dec 2001 20:29:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13039 invoked from network); 18 Dec 2001 20:28:34 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 18 Dec 2001 20:28:34 -0000 Received: from there (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id MAA25648; Tue, 18 Dec 2001 12:28:20 -0800 (PST) Message-Id: <200112182028.MAA25648@cygnus.com> Content-Type: text/plain; charset="iso-8859-1" From: "Martin M. Hunt" Organization: Red Hat Inc To: Andrew Cagney Subject: Re: [RFA] new tcp_open Date: Tue, 18 Dec 2001 12:29:00 -0000 X-Mailer: KMail [version 1.3.2] Cc: Orjan Friberg , gdb-patches@sources.redhat.com References: <200112031918.LAA18199@cygnus.com> <200112181056.CAA08011@cygnus.com> <3C1F26D7.30003@cygnus.com> In-Reply-To: <3C1F26D7.30003@cygnus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2001-12/txt/msg00445.txt.bz2 Checked in. Martin On Tuesday 18 December 2001 03:21 am, Andrew Cagney wrote: > > Please give this patch a try and see if it fixes the problem. > > > > Index: ser-tcp.c > > =================================================================== > > RCS file: /cvs/src/src/gdb/ser-tcp.c,v > > retrieving revision 1.9 > > diff -u -p -r1.9 ser-tcp.c > > --- ser-tcp.c 2001/12/07 17:57:05 1.9 > > +++ ser-tcp.c 2001/12/18 10:54:31 > > @@ -165,6 +165,10 @@ tcp_open (struct serial *scb, const char > > tmp = 0; > > ioctl (scb->fd, FIONBIO, &tmp); > > > > + tmp = 1; > > + setsockopt (scb->fd, IPPROTO_TCP, TCP_NODELAY, > > + (char *)&tmp, sizeof (tmp)); > > + > > /* If we don't do this, then GDB simply exits > > when the remote side dies. */ > > signal (SIGPIPE, SIG_IGN); > > If it does, feel free to check it, and any other related changes in :-) > > > Andrew