Bail on ENXIO, you won't get any further any way.

Submitted by:	tobez
This commit is contained in:
Poul-Henning Kamp 2009-01-17 11:57:32 +00:00
parent 3d21f0f440
commit 972b3f3056

View File

@ -276,7 +276,10 @@ main(int argc, char * const argv[])
lp->len -= i;
continue;
}
printf("\n%jd %zu failed %d\n", lp->start, i, errno);
printf("\n%jd %zu failed (%s)\n",
lp->start, i, strerror(errno));
if (errno == ENXIO)
aborting = 1;
new_lump(lp->start, i, lp->state + 1);
lp->start += i;
lp->len -= i;