mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-27 18:20:46 +08:00
debugger: Set the fd to -1 to indicate being disconnected.
This commit is contained in:
parent
f7a4107c6f
commit
afda2c7ac4
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user