Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
socket: propagate non-block error codes upwards (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido authored Apr 4, 2024
1 parent 590dcf8 commit cac9d32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,11 @@ int camblet_recvmsg(struct sock *sock,

if (ret == -EAGAIN || ret == -EWOULDBLOCK)
{
continue;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)
int nonblock = flags & MSG_DONTWAIT;
#endif
if (nonblock == 0)
continue;
}

goto bail;
Expand Down

0 comments on commit cac9d32

Please sign in to comment.