From: Marcos Henrich Date: Wed, 8 Apr 2015 13:44:09 +0000 (+0100) Subject: [System] Process.WaitForExit now triggers event Exited. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=5a7a7a0620261a92a871cc587a373752ee516f0e;p=mono.git [System] Process.WaitForExit now triggers event Exited. --- diff --git a/mcs/class/System/System.Diagnostics/Process.cs b/mcs/class/System/System.Diagnostics/Process.cs index d65247fc4d8..2910f943c5e 100644 --- a/mcs/class/System/System.Diagnostics/Process.cs +++ b/mcs/class/System/System.Diagnostics/Process.cs @@ -1256,7 +1256,13 @@ namespace System.Diagnostics { return false; } } - return WaitForExit_internal (process_handle, ms); + + bool exited = WaitForExit_internal (process_handle, ms); + + if (exited) + OnExited (); + + return exited; } /* Waits up to ms milliseconds for process 'handle' to