diff src/process.c @ 30:ec9a17fef872 r19-15b98

Import from CVS: tag r19-15b98
author cvs
date Mon, 13 Aug 2007 08:52:29 +0200
parents 441bb1e64a06
children c53a95d3c46d
line wrap: on
line diff
--- a/src/process.c	Mon Aug 13 08:51:58 2007 +0200
+++ b/src/process.c	Mon Aug 13 08:52:29 2007 +0200
@@ -1289,6 +1289,9 @@
 		      Error_behavior errb)
 {
   struct hostent *host_info_ptr;
+#ifdef TRY_AGAIN
+  int count = 0;
+#endif
 
 #ifndef HAVE_TERM
   memset (address, 0, sizeof (*address));
@@ -1296,6 +1299,7 @@
   while (1)
     {
 #ifdef TRY_AGAIN
+      if (count++ > 10) break;
       h_errno = 0;
 #endif
       /* Some systems can't handle SIGIO/SIGALARM in gethostbyname. */