mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 04:46:27 +08:00
debugger: Set the fd to -1 to indicate being disconnected.
This commit is contained in:
@@ -276,6 +276,7 @@ tcp_remote_disconnect(rtems_debugger_remote* remote)
|
|||||||
|
|
||||||
tcp = (rtems_debugger_remote_tcp*) remote->data;
|
tcp = (rtems_debugger_remote_tcp*) remote->data;
|
||||||
close(tcp->fd);
|
close(tcp->fd);
|
||||||
|
tcp->fd = -1;
|
||||||
|
|
||||||
rtems_debugger_unlock();
|
rtems_debugger_unlock();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user