diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-26 07:56:16 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-26 07:56:16 +0000 |
commit | 10162cff319c83d7f2647ba8043b6ee065abf916 (patch) | |
tree | 39acc94aeb6f6439abc66a690493ca6d658902bf /usr.bin/fetch/fetch.c | |
parent | 9b9e86aec01c1b8f5cdc3823c10e5dfe7b48ebb2 (diff) | |
download | src-10162cff319c83d7f2647ba8043b6ee065abf916.tar.gz src-10162cff319c83d7f2647ba8043b6ee065abf916.zip |
Notes
Diffstat (limited to 'usr.bin/fetch/fetch.c')
-rw-r--r-- | usr.bin/fetch/fetch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index cc49b9fd4044..ad605bf921e8 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -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); |