debugger: Set the fd to -1 to indicate being disconnected.

This commit is contained in:
Chris Johns 2016-11-29 16:13:52 +11:00
parent f7a4107c6f
commit afda2c7ac4

View File

@ -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();