Restore the old semantics of deleting the output file when interrupted.

Some people liked this and some didn't, so POLA won.
This commit is contained in:
Dag-Erling Smørgrav 2000-07-26 07:28:33 +00:00
parent fa0c86aadc
commit 9516ffa7c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63877

View File

@ -400,10 +400,12 @@ fetch(char *URL, char *path)
signal:
if (sigalrm)
warnx("transfer timed out");
if (sigint)
if (sigint) {
warnx("transfer interrupted");
goto failure;
}
if (!sigalrm && !sigint) {
if (!sigalrm) {
/* check the status of our files */
if (ferror(f))
warn("%s", URL);