mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 01:27:12 +00:00
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.