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:
Todd C. Miller
2017-12-12 21:44:23 -07:00
parent bda2f4c441
commit cd0b700543

View File

@@ -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;
}
} }
/* /*