summaryrefslogtreecommitdiffstats
path: root/qarsh.c
diff options
context:
space:
mode:
Diffstat (limited to 'qarsh.c')
-rw-r--r--qarsh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qarsh.c b/qarsh.c
index 116779d..29b2cba 100644
--- a/qarsh.c
+++ b/qarsh.c
@@ -46,6 +46,7 @@
#define QARSH_MINPORT 5010
#define QARSH_BUFSIZE 4096
+#define CONNECT_TIMEOUT 30
/* Globals */
@@ -508,7 +509,7 @@ again:
sa.sa_handler = sig_alrm_handler;
sigaction(SIGALRM, &sa, NULL);
- alarm(max_timeout);
+ alarm(CONNECT_TIMEOUT);
qarsh_fd = connect_to_host(host, port, &qarsh_ss_family);
alarm(0);