diff options
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -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 |