mirror of
https://github.com/digarok/gsplus.git
synced 2024-05-28 13:41:31 +00:00
Fix infinite socket blocking on Linux
This commit is contained in:
parent
59374ca419
commit
15def9d30e
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user