Be certain to not abort prematurely when reading stuff from pipes.

This commit is contained in:
Eric Andersen
2003-07-05 23:10:27 +00:00
parent 9f894f4062
commit e3393513c5
3 changed files with 3 additions and 3 deletions

View File

@@ -526,7 +526,7 @@ static inline int writeTarFile(const char *tarName, const int verboseFlag,
while (1) {
char buf;
int n = read(gzipStatusPipe[0], &buf, 1);
int n = bb_full_read(gzipStatusPipe[0], &buf, 1);
if (n == 0 && vfork_exec_errno != 0) {
errno = vfork_exec_errno;