This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] new tcp_open


> 
> 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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]