summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-10-27 15:32:06 +0000
committerdes <des@FreeBSD.org>2002-10-27 15:32:06 +0000
commitf8dcf07de6dd867cbe1ce1658aa8ef03f10ed3cd (patch)
tree21d4e4d047a5da08e02a63d8a0c9715a1608a030 /usr.bin/fetch
parentc1a42364827f8d2ce4bf20e6dd26748340a78c0a (diff)
downloadFreeBSD-src-f8dcf07de6dd867cbe1ce1658aa8ef03f10ed3cd.zip
FreeBSD-src-f8dcf07de6dd867cbe1ce1658aa8ef03f10ed3cd.tar.gz
Forgot to disable alarms after fetchXGet() in previous commit.
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 6b237f3..740ddff 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -387,6 +387,8 @@ fetch(char *URL, const char *path)
if (timeout)
alarm(timeout);
f = fetchXGet(url, &us, flags);
+ if (timeout)
+ alarm(0);
if (sigalrm || sigint)
goto signal;
if (f == NULL) {
OpenPOWER on IntegriCloud