📜  无法退出 recvfrom - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:31.388000             🧑  作者: Mango

代码示例1
Call shutdown(sock, SHUT_RDWR) on the socket, then wait for the thread to exit. (i.e. pthread_join).

You would think that close() would unblock the recvfrom(), but it doesn't on linux.