Fix infinite socket blocking on Linux

This commit is contained in:
Jeremy Penner 2020-09-09 22:26:38 -04:00
parent 59374ca419
commit 15def9d30e

View File

@ -1027,7 +1027,7 @@ void debug_server_poll() {
/* failure occurs, we will close the */
/* connection. */
/*****************************************************/
rc = recv(fds[i].fd, buffer, sizeof(buffer), 0);
rc = recv(fds[i].fd, buffer, sizeof(buffer), MSG_DONTWAIT);
if (rc < 0) {
if (errno != EWOULDBLOCK) {
perror("recv() failed");