aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-13 16:45:09 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-13 16:45:09 +0000
commite0ec82cf5e4e9ca3070ed5a3ff51b1ff927fe7f4 (patch)
treefd6b972516acea5c0155abaef7282a63bb36708f /socket.c
parent3fb4233b2db4486b6e593546798604bbdaf45613 (diff)
downloadfetchmail-e0ec82cf5e4e9ca3070ed5a3ff51b1ff927fe7f4.tar.gz
fetchmail-e0ec82cf5e4e9ca3070ed5a3ff51b1ff927fe7f4.tar.bz2
fetchmail-e0ec82cf5e4e9ca3070ed5a3ff51b1ff927fe7f4.zip
Add settable server-nonresponse timeout
svn path=/trunk/; revision=325
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/socket.c b/socket.c
index 62ea92b5..24d86ee8 100644
--- a/socket.c
+++ b/socket.c
@@ -12,7 +12,6 @@
#include <config.h>
-#include <signal.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -43,9 +42,6 @@
#define INTERNAL_BUFSIZE 2048
-extern int timeout;
-extern void alarm_handler();
-
int Socket(host, clientPort)
char *host;
int clientPort;
@@ -88,13 +84,6 @@ int len;
while (--len)
{
- /* we have to push alarm in case we receive a large message */
- sigsave = signal (SIGALRM, alarm_handler);
- if (sigsave == alarm_handler)
- alarm (timeout);
- else
- signal (SIGALRM, sigsave);
-
if (SockInternalRead(socket, buf, 1) != 1)
return -1;
else