diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-17 19:00:38 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-17 19:00:38 +0000 |
commit | 48a07301bbfe42ba387d13c77eb6bdd49ef289ed (patch) | |
tree | 0c7fc81ebabcda598a6f392b2f88baa43b3364ed /usr.sbin/sysinstall/dist.c | |
parent | 7c66c44c4ff23dfaaf664650aa0b4309af5dadbc (diff) | |
download | FreeBSD-src-48a07301bbfe42ba387d13c77eb6bdd49ef289ed.zip FreeBSD-src-48a07301bbfe42ba387d13c77eb6bdd49ef289ed.tar.gz |
Be more aggressive about timeouts.
Diffstat (limited to 'usr.sbin/sysinstall/dist.c')
-rw-r--r-- | usr.sbin/sysinstall/dist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index ea7a781..7bd3795 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -497,8 +497,10 @@ distExtract(char *parent, Distribution *me) alarm_set(MEDIA_TIMEOUT, media_timeout); n = fread(buf, 1, BUFSIZ, fp); alarm_clear(); - if (n <= 0 || AlarmWentOff) + if (n <= 0 || AlarmWentOff) { + msgConfirm("Read error on media (timeout or user abort).\n"); break; + } total += n; /* Print statistics about how we're doing */ |