Make Reddit users happy
This commit is contained in:
@@ -486,7 +486,6 @@ static ssize_t WritevAll(int fd, struct iovec *iov, int iovlen) {
|
|||||||
ssize_t rc;
|
ssize_t rc;
|
||||||
size_t wrote;
|
size_t wrote;
|
||||||
do {
|
do {
|
||||||
TryAgain:
|
|
||||||
if ((rc = writev(fd, iov, iovlen)) != -1) {
|
if ((rc = writev(fd, iov, iovlen)) != -1) {
|
||||||
wrote = rc;
|
wrote = rc;
|
||||||
do {
|
do {
|
||||||
@@ -502,7 +501,6 @@ static ssize_t WritevAll(int fd, struct iovec *iov, int iovlen) {
|
|||||||
} while (wrote);
|
} while (wrote);
|
||||||
} else if (errno == EINTR) {
|
} else if (errno == EINTR) {
|
||||||
if (killed) return -1;
|
if (killed) return -1;
|
||||||
goto TryAgain;
|
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user