aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
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