diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-03-16 07:21:35 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-03-16 07:21:35 +0300 |
commit | 3e48b49a2482e7f574c9d9f61a57d1d5a33628ce (patch) | |
tree | a7c7f74862ef1a4031eb1ecfa564a14b6d148c59 /mcs/class/System/System.Diagnostics | |
parent | d88af790aaba9557badc983edb62655929563cde (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/ChangeLog | 5 | ||||
-rwxr-xr-x | mcs/class/System/System.Diagnostics/Process.cs | 6 |
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] |