summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
diff options
context:
space:
mode:
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