mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
ignore EINTR errors
git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@251 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
parent
30308e7a66
commit
d0c8436086
1 changed files with 5 additions and 1 deletions
|
@ -98,8 +98,12 @@ int msg_recv(struct msg *m, struct node *n)
|
|||
/** @todo Fix this for multiple paths calling msg_recv. */
|
||||
|
||||
/* Receive message from socket */
|
||||
if (recv(n->sd, m, sizeof(struct msg), 0) < 0)
|
||||
if (recv(n->sd, m, sizeof(struct msg), 0) < 0) {
|
||||
if (errno == EINTR)
|
||||
return -EINTR;
|
||||
|
||||
perror("Failed recv");
|
||||
}
|
||||
|
||||
/* Convert headers to host byte order */
|
||||
m->sequence = ntohs(m->sequence);
|
||||
|
|
Loading…
Add table
Reference in a new issue