From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1424 invoked by alias); 18 Dec 2001 11:22:04 -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 1403 invoked from network); 18 Dec 2001 11:22:00 -0000 Received: from unknown (HELO localhost.cygnus.com) (195.224.55.237) by sources.redhat.com with SMTP; 18 Dec 2001 11:22:00 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 7AF053E6C; Tue, 18 Dec 2001 06:21:59 -0500 (EST) Message-ID: <3C1F26D7.30003@cygnus.com> Date: Tue, 18 Dec 2001 03:22:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.6) Gecko/20011207 X-Accept-Language: en-us MIME-Version: 1.0 To: "Martin M. Hunt" Cc: Orjan Friberg , gdb-patches@sources.redhat.com Subject: Re: [RFA] new tcp_open References: <200112031918.LAA18199@cygnus.com> <3C1F1D00.A35E3AF@axis.com> <200112181056.CAA08011@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00438.txt.bz2 > > 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