Answers for "cannot exit recvfrom"

0

cannot exit recvfrom

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.
Posted by: Guest on May-12-2020

Browse Popular Code Answers by Language