summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-11-29 16:13:52 +1100
committerChris Johns <chrisj@rtems.org>2016-11-29 16:13:52 +1100
commitafda2c7ac4a5ac03bae8ee552ed57a0d770c9512 (patch)
tree6f5bf6e52a1ae200c8241c9c759a1153c7bb4b35
parentf7a4107c6f2e6c8231b606e38af5adb31178a342 (diff)
downloadrtems-libbsd-afda2c7ac4a5ac03bae8ee552ed57a0d770c9512.tar.bz2
debugger: Set the fd to -1 to indicate being disconnected.
-rw-r--r--rtemsbsd/debugger/rtems-debugger-remote-tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtemsbsd/debugger/rtems-debugger-remote-tcp.c b/rtemsbsd/debugger/rtems-debugger-remote-tcp.c
index af222e00..696e2deb 100644
--- a/rtemsbsd/debugger/rtems-debugger-remote-tcp.c
+++ b/rtemsbsd/debugger/rtems-debugger-remote-tcp.c
@@ -276,6 +276,7 @@ tcp_remote_disconnect(rtems_debugger_remote* remote)
tcp = (rtems_debugger_remote_tcp*) remote->data;
close(tcp->fd);
+ tcp->fd = -1;
rtems_debugger_unlock();