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:
authorPaolo Molaro <lupus@oddwiz.org>2006-12-14 22:25:03 +0300
committerPaolo Molaro <lupus@oddwiz.org>2006-12-14 22:25:03 +0300
commitf166c9e5407fa67756ee8e3fd5f8036c0cad919b (patch)
tree07643b91fc265a99056f71bbf11053061f29a539 /mcs/class/System/System.Diagnostics/Process.cs
parent01b57b1d9f878c3a55a226e921770460842cc833 (diff)
Thu Dec 14 20:24:09 CET 2006 Paolo Molaro <lupus@ximian.com>
* Process.cs: if a process object is restarted, close the previous process handle (bug #80143). svn path=/trunk/mcs/; revision=69505
Diffstat (limited to 'mcs/class/System/System.Diagnostics/Process.cs')
-rw-r--r--mcs/class/System/System.Diagnostics/Process.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/System/System.Diagnostics/Process.cs b/mcs/class/System/System.Diagnostics/Process.cs
index e76df4ead01..930074d7e87 100644
--- a/mcs/class/System/System.Diagnostics/Process.cs
+++ b/mcs/class/System/System.Diagnostics/Process.cs
@@ -1033,7 +1033,11 @@ namespace System.Diagnostics {
public bool Start() {
bool ret;
-
+
+ if (process_handle != IntPtr.Zero) {
+ Process_free_internal (process_handle);
+ process_handle = IntPtr.Zero;
+ }
ret=Start_common(start_info, this);
return(ret);