aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index f8e40c34..9008a66d 100644
--- a/socket.c
+++ b/socket.c
@@ -680,7 +680,7 @@ int SockClose(int sock)
* side is acknowledged at the TCP level.
*/
if (recv(sock, &ch, 1, MSG_PEEK) > 0)
- while (recv(sock, &ch, 1, MSG_NOSIGNAL) > 0)
+ while (read(sock, &ch, 1) > 0)
continue;
/* if there's an error closing at this point, not much we can do */