From aa0403d920ef898519cc2413e074f4622045a95f Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 18 Jul 2007 12:36:51 +0000 Subject: [PATCH] * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc instead of on tmp_desc. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/remote-utils.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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. */ -- 2.30.2