stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r549748 - /incubator/stdcxx/trunk/etc/config/windows/build.wsf
Date Fri, 22 Jun 2007 08:02:47 GMT
Author: faridz
Date: Fri Jun 22 01:02:46 2007
New Revision: 549748

URL: http://svn.apache.org/viewvc?view=rev&rev=549748
Log:
2007-06-22 Farid Zaripov <Farid_Zaripov@epam.com>

	* build.wsf (build): Limit infinite loop by 60 seconds.

Modified:
    incubator/stdcxx/trunk/etc/config/windows/build.wsf

Modified: incubator/stdcxx/trunk/etc/config/windows/build.wsf
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/windows/build.wsf?view=diff&rev=549748&r1=549747&r2=549748
==============================================================================
--- incubator/stdcxx/trunk/etc/config/windows/build.wsf (original)
+++ incubator/stdcxx/trunk/etc/config/windows/build.wsf Fri Jun 22 01:02:46 2007
@@ -226,7 +226,8 @@
 
         // fix 'Call was Rejected By Callee' error
         // http://msdn2.microsoft.com/en-us/library/ms228772(vs.80).aspx
-        while (true)
+        var ntimes = 60;
+        for (var i = 0; i < ntimes; ++i)
         {
             try
             {
@@ -235,9 +236,20 @@
             }
             catch (e)
             {
-                WScript.Sleep(1000);
+                if (0 > e.description.indexOf("Call was rejected by callee")
+                    || i == ntimes - 1)
+                {
+                    WScript.StdErr.WriteLine("Build: " + e.description);
+                    retCode = 7;
+                    break;
+                }
+                else
+                    WScript.Sleep(1000);
             }
         }
+
+        if (retCode)
+            break;
         
         events = projectEngine.Events;
         try



Mime
View raw message