* Process.cs (Dispose): Close the async output/error readers. Fixes #545429.
svn path=/trunk/mcs/; revision=143985
+2009-10-12 Zoltan Varga <vargaz@gmail.com>
+
+ * Process.cs (Dispose): Close the async output/error readers. Fixes #545429.
+
2009-07-22 Jb Evain <jbevain@novell.com>
* ProcessStartInfo.cs: force no-verb on MONOTOUCH.
internal int error;
public int operation = 8; // MAGIC NUMBER: see Socket.cs:AsyncOperation
public object ares;
-
+ public int EndCalled;
// These fields are not in SocketAsyncResult
Process process;
}
}
}
+
+ public void Close () {
+ stream.Close ();
+ }
}
AsyncModes async_mode;
// dispose all managed resources.
if(disposing) {
// Do stuff here
+ lock (this) {
+ /* These have open FileStreams on the pipes we are about to close */
+ if (async_output != null)
+ async_output.Close ();
+ if (async_error != null)
+ async_error.Close ();
+ }
}
// Release unmanaged resources