aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch/fetch.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-10-27 15:32:06 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-10-27 15:32:06 +0000
commit0c6d34af10aa99af6fb74a64373c9cc95951150e (patch)
tree21d4e4d047a5da08e02a63d8a0c9715a1608a030 /usr.bin/fetch/fetch.c
parentdc161d5582241468e7dbcd42cd272c67401182e9 (diff)
downloadsrc-0c6d34af10aa99af6fb74a64373c9cc95951150e.tar.gz
src-0c6d34af10aa99af6fb74a64373c9cc95951150e.zip
Forgot to disable alarms after fetchXGet() in previous commit.
Notes
Notes: svn path=/head/; revision=106042
Diffstat (limited to 'usr.bin/fetch/fetch.c')
-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 6b237f359a73..740ddff75eef 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) {