aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2007-07-18 12:36:51 +0000
committerPedro Alves <palves@redhat.com>2007-07-18 12:36:51 +0000
commitaa0403d920ef898519cc2413e074f4622045a95f (patch)
treeef510dd15cb9bfa6eca0dbfd25e9aecea568c57e /gdb
parenta5d1b3b53e1db512253b2036c841645ff45df311 (diff)
downloadgdb-aa0403d920ef898519cc2413e074f4622045a95f.zip
gdb-aa0403d920ef898519cc2413e074f4622045a95f.tar.gz
gdb-aa0403d920ef898519cc2413e074f4622045a95f.tar.bz2
* remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
instead of on tmp_desc.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/remote-utils.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 7c58e03..6b169cc 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
+ instead of on tmp_desc.
+
2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
Daniel Jacobowitz <dan@codesourcery.com>
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index bd1b482..0e3acf4 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. */