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.
|
||||
* 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).
|
||||
|
Reference in New Issue
Block a user