Fix issue where we might leak backend processes

This commit is contained in:
Juhani Krekelä 2019-07-15 00:38:14 +03:00
parent 579550468c
commit ed79daeeb0
1 changed files with 2 additions and 0 deletions

View File

@ -389,6 +389,8 @@ void readallx(int fd, unsigned char *buf, size_t length) {
ssize_t res = read(fd, &buf[completed], length - completed);
if (res == -1) {
err(1, "read");
} else if (res == 0) {
errx(1, "Unexpected EOF");
}
completed += res;
}