From: Pedro Alves Date: Wed, 18 Jul 2007 12:36:51 +0000 (+0000) Subject: * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa0403d920ef898519cc2413e074f4622045a95f;p=binutils-gdb.git * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc instead of on tmp_desc. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 7c58e030eab..6b169cc5483 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2007-07-18 Pedro Alves + + * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc + instead of on tmp_desc. + 2007-07-17 Pedro Alves Daniel Jacobowitz diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index bd1b482ada8..0e3acf4fd78 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -246,7 +246,8 @@ remote_open (char *name) /* Enable TCP keep alive process. */ tmp = 1; - setsockopt (tmp_desc, SOL_SOCKET, SO_KEEPALIVE, (char *) &tmp, sizeof (tmp)); + setsockopt (remote_desc, SOL_SOCKET, SO_KEEPALIVE, + (char *) &tmp, sizeof (tmp)); /* Tell TCP not to delay small packets. This greatly speeds up interactive response. */