mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 14:29:28 +00:00
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:
parent
fa0c86aadc
commit
9516ffa7c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63877
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user