* Process.cs (SetExitCallbackIfNeeded): Avoid a race condition by not
checking for HashExited.
svn path=/trunk/mcs/; revision=108887
+2008-07-27 Zoltan Varga <vargaz@gmail.com>
+
+ * Process.cs (SetExitCallbackIfNeeded): Avoid a race condition by not
+ checking for HashExited.
+
2008-06-27 Atsushi Enomoto <atsushi@ximian.com>
* DiagnosticsConfigurationHandler.cs: quick build fix (hopefully).
{
#if !NET_2_1
bool start = (!already_waiting && enableRaisingEvents && exited_event != null);
- if (start && process_handle != IntPtr.Zero && !HasExited) {
+ if (start && process_handle != IntPtr.Zero) {
WaitOrTimerCallback cb = new WaitOrTimerCallback (CBOnExit);
ProcessWaitHandle h = new ProcessWaitHandle (process_handle);
ThreadPool.RegisterWaitForSingleObject (h, cb, this, -1, true);