aboutsummaryrefslogtreecommitdiffhomepage
path: root/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index a7bd048..a66bc33 100644
--- a/unix.c
+++ b/unix.c
@@ -504,8 +504,10 @@ enet_socket_receive (ENetSocket socket,
switch (errno)
{
case EWOULDBLOCK:
- case EINTR:
return 0;
+ case EINTR:
+ case EMSGSIZE:
+ return -2;
default:
return -1;
}