No need for a loop around the recv() now that we don't have to worry
about EINTR. CID 180697
This commit is contained in:
@@ -828,7 +828,6 @@ backchannel_cb(int fd, int what, void *v)
|
|||||||
* Read command status from the monitor.
|
* Read command status from the monitor.
|
||||||
* Note that the backchannel is a *blocking* socket.
|
* Note that the backchannel is a *blocking* socket.
|
||||||
*/
|
*/
|
||||||
for (;;) {
|
|
||||||
nread = recv(fd, &cstat, sizeof(cstat), MSG_WAITALL);
|
nread = recv(fd, &cstat, sizeof(cstat), MSG_WAITALL);
|
||||||
switch (nread) {
|
switch (nread) {
|
||||||
case -1:
|
case -1:
|
||||||
@@ -908,7 +907,6 @@ backchannel_cb(int fd, int what, void *v)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
debug_return;
|
debug_return;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user