Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-03-16 07:21:35 +0300
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-03-16 07:21:35 +0300
commit3e48b49a2482e7f574c9d9f61a57d1d5a33628ce (patch)
treea7c7f74862ef1a4031eb1ecfa564a14b6d148c59 /mcs/class/System/System.Diagnostics
parentd88af790aaba9557badc983edb62655929563cde (diff)
2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Process.cs: patch by Gert Driesen that fixes WaitForExit when the timeout is int.MaxValue. svn path=/trunk/mcs/; revision=24104
Diffstat (limited to 'mcs/class/System/System.Diagnostics')
-rw-r--r--mcs/class/System/System.Diagnostics/ChangeLog5
-rwxr-xr-xmcs/class/System/System.Diagnostics/Process.cs6
2 files changed, 9 insertions, 2 deletions
diff --git a/mcs/class/System/System.Diagnostics/ChangeLog b/mcs/class/System/System.Diagnostics/ChangeLog
index 26fec8fad84..856d1ac43ae 100644
--- a/mcs/class/System/System.Diagnostics/ChangeLog
+++ b/mcs/class/System/System.Diagnostics/ChangeLog
@@ -1,5 +1,10 @@
2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+ * Process.cs: patch by Gert Driesen that fixes WaitForExit when the
+ timeout is int.MaxValue.
+
+2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
* Process.cs: added environment variables setting support and also
send useShellExecute to the runtime.
diff --git a/mcs/class/System/System.Diagnostics/Process.cs b/mcs/class/System/System.Diagnostics/Process.cs
index e568e57a95b..bd5a5686ffd 100755
--- a/mcs/class/System/System.Diagnostics/Process.cs
+++ b/mcs/class/System/System.Diagnostics/Process.cs
@@ -795,8 +795,10 @@ namespace System.Diagnostics {
}
public bool WaitForExit(int milliseconds) {
- return(WaitForExit_internal(process_handle,
- milliseconds));
+ if (milliseconds == int.MaxValue)
+ milliseconds = -1;
+
+ return WaitForExit_internal (process_handle, milliseconds);
}
[MonoTODO]