socket: fix I/O verdict after successfull recvmsg
When we read data from a socket, we need to raise SOCKET_E_PREEMPTED,
since there might (or might not) be data left to read.
@@ -490,7 +490,7 @@ static int socket_recvmsg(Socket *socket, void *buffer, size_t n_buffer, size_t
}
*from += l;
- return 0;
+ return SOCKET_E_PREEMPTED;
error:
while (n_fds)
