forked from mirrors/0ad
b2fc1d6943
FreeBSD could hang indefinitely when the debug-adapter process terminated because we closed the TCP socket without first calling `shutdown()`. On that platform (and similarly on Linux and macOS) a peer that is still blocked in `recv` will not be woken up unless a full‐duplex shutdown is performed. This patch adds `shutdown(fd, SHUT_RDWR)` in `DapInterface.cpp` for Linux, *BSD, and macOS builds, preventing the observed hang.