Author: gonzalo
Date: 2006-08-09 17:20:35 -0400 (Wed, 09 Aug 2006)
New Revision: 63567

Modified:
   trunk/mcs/class/System/System.Diagnostics/ChangeLog
   trunk/mcs/class/System/System.Diagnostics/Process.cs
Log:
2006-08-09 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * Process.cs: reset the 'start' time if we wait for stdout reading to
        be completed.



Modified: trunk/mcs/class/System/System.Diagnostics/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Diagnostics/ChangeLog 2006-08-09 21:20:28 UTC 
(rev 63566)
+++ trunk/mcs/class/System/System.Diagnostics/ChangeLog 2006-08-09 21:20:35 UTC 
(rev 63567)
@@ -1,5 +1,10 @@
 2006-08-09 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
+       * Process.cs: reset the 'start' time if we wait for stdout reading to
+       be completed.
+
+2006-08-09 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
        * Process.cs: add support for 2.0 asynchronous reads on stdout and
        stderr.
 

Modified: trunk/mcs/class/System/System.Diagnostics/Process.cs
===================================================================
--- trunk/mcs/class/System/System.Diagnostics/Process.cs        2006-08-09 
21:20:28 UTC (rev 63566)
+++ trunk/mcs/class/System/System.Diagnostics/Process.cs        2006-08-09 
21:20:35 UTC (rev 63567)
@@ -1083,9 +1083,11 @@
                                        return false; // Timed out
 
                                if (ms >= 0) {
-                                       ms -= (int) (DateTime.UtcNow - 
start).TotalMilliseconds;
+                                       DateTime now = DateTime.UtcNow;
+                                       ms -= (int) (now - 
start).TotalMilliseconds;
                                        if (ms <= 0)
                                                return false;
+                                       start = now;
                                }
                        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to