increase alarm timeout
authorRick Adams <rick@ucbvax.Berkeley.EDU>
Thu, 25 Feb 1988 12:44:35 +0000 (04:44 -0800)
committerRick Adams <rick@ucbvax.Berkeley.EDU>
Thu, 25 Feb 1988 12:44:35 +0000 (04:44 -0800)
SCCS-vsn: usr.bin/uucp/libacu/bsdtcp.c 4.4

usr/src/usr.bin/uucp/libacu/bsdtcp.c

index 0fc7b51..727e44b 100644 (file)
@@ -1,9 +1,8 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)bsdtcp.c   4.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)bsdtcp.c   4.4 (Berkeley) %G%";
 #endif
 
 #include "../condevs.h"
 #endif
 
 #include "../condevs.h"
-#ifdef BSDTCP
 #include <netdb.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -50,7 +49,7 @@ register char *flds[];
                return CF_DIAL;
        }
        signal(SIGALRM, alarmtr);
                return CF_DIAL;
        }
        signal(SIGALRM, alarmtr);
-       alarm(30);
+       alarm(MAXMSGTIME*2);
        hisctladdr.sin_family = hp->h_addrtype;
 #ifdef BSD2_9
        s = socket(SOCK_STREAM, 0, &hisctladdr, 0);
        hisctladdr.sin_family = hp->h_addrtype;
 #ifdef BSD2_9
        s = socket(SOCK_STREAM, 0, &hisctladdr, 0);
@@ -94,4 +93,3 @@ register int fd;
                DEBUG(4, "closed fd %d\n", fd);
        }
 }
                DEBUG(4, "closed fd %d\n", fd);
        }
 }
-#endif BSDTCP