diff options
-rw-r--r-- | qarsh.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |