summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qarsh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qarsh.c b/qarsh.c
index 6575bd0..ea272da 100644
--- a/qarsh.c
+++ b/qarsh.c
@@ -46,6 +46,7 @@
#define QARSH_MINPORT 5010
#define QARSH_BUFSIZE 4096
+#define CONNECT_TIMEOUT 30
/* Globals */
@@ -507,7 +508,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);
alarm(0);