* remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
authorPedro Alves <palves@redhat.com>
Wed, 18 Jul 2007 12:36:51 +0000 (12:36 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 18 Jul 2007 12:36:51 +0000 (12:36 +0000)
instead of on tmp_desc.

gdb/gdbserver/ChangeLog
gdb/gdbserver/remote-utils.c

index 7c58e030eab3401c5be5df7f421b785ab481f1d2..6b169cc5483f46058c0a9528b886c6443353c60b 100644 (file)
@@ -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>
 
index bd1b482ada84fd5c0fa8193fd855b78ea000cadd..0e3acf4fd78932e41e6c0b8047edfc243733d69f 100644 (file)
@@ -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. */