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.
* Note that the backchannel is a *blocking* socket.
*/
for (;;) {
nread = recv(fd, &cstat, sizeof(cstat), MSG_WAITALL);
switch (nread) {
case -1:
@@ -909,7 +908,6 @@ backchannel_cb(int fd, int what, void *v)
}
debug_return;
}
}
/*
* Handle changes to the monitors's status (SIGCHLD).