From 4d6ecbdb2fb75a80b269ff8cc1cd26f2e73753fe Mon Sep 17 00:00:00 2001 From: palves 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 7c58e030ea..6b169cc548 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 bd1b482ada..0e3acf4fd7 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.11.0