mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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. |
||
|---|---|---|
| .. | ||
| tests | ||
| DapInterface.cpp | ||
| DapInterface.h | ||