mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 05:17:54 +00:00
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:
parent
bda2f4c441
commit
cd0b700543
@ -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:
|
||||
@ -908,7 +907,6 @@ backchannel_cb(int fd, int what, void *v)
|
||||
break;
|
||||
}
|
||||
debug_return;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user