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:
authorRobert Jordan <robertj@gmx.net>2007-10-30 21:35:42 +0300
committerRobert Jordan <robertj@gmx.net>2007-10-30 21:35:42 +0300
commit535abaefa2d8c8a06e7f20a2d3b74f8f044919da (patch)
treec414bd893b7c35c8952bdd8c34ba65a203f48871 /mcs/class/System/System.Diagnostics/Process.cs
parentdfd2c8407e18c01f1d5e3139363955ccae559a75 (diff)
In Test/System.Diagnostics:
2007-10-30 Robert Jordan <robertj@gmx.net> * ProcessTest.cs: Add tests for bug #319829. In System.Diagnostics: 2007-10-30 Robert Jordan <robertj@gmx.net> * Process.cs: Wrap the redirected streams with a stream that provides real async Begin/Read|Write operations. Fixes bug #319829. In System.IO: 2007-10-30 Robert Jordan <robertj@gmx.net> * MonoSyncFileStream.cs: Add. svn path=/trunk/mcs/; revision=88491
Diffstat (limited to 'mcs/class/System/System.Diagnostics/Process.cs')
-rw-r--r--mcs/class/System/System.Diagnostics/Process.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System/System.Diagnostics/Process.cs b/mcs/class/System/System.Diagnostics/Process.cs
index c570e93342e..766cd726679 100644
--- a/mcs/class/System/System.Diagnostics/Process.cs
+++ b/mcs/class/System/System.Diagnostics/Process.cs
@@ -1072,7 +1072,7 @@ namespace System.Diagnostics {
if (startInfo.RedirectStandardInput == true) {
MonoIO.Close (stdin_rd, out error);
- process.input_stream = new StreamWriter (new FileStream (stdin_wr, FileAccess.Write, true), Console.Out.Encoding);
+ process.input_stream = new StreamWriter (new MonoSyncFileStream (stdin_wr, FileAccess.Write, true, 8192), Console.Out.Encoding);
process.input_stream.AutoFlush = true;
}
@@ -1086,12 +1086,12 @@ namespace System.Diagnostics {
if (startInfo.RedirectStandardOutput == true) {
MonoIO.Close (stdout_wr, out error);
- process.output_stream = new StreamReader (new FileStream (process.stdout_rd, FileAccess.Read, true), stdoutEncoding);
+ process.output_stream = new StreamReader (new MonoSyncFileStream (process.stdout_rd, FileAccess.Read, true, 8192), stdoutEncoding);
}
if (startInfo.RedirectStandardError == true) {
MonoIO.Close (stderr_wr, out error);
- process.error_stream = new StreamReader (new FileStream (process.stderr_rd, FileAccess.Read, true), stderrEncoding);
+ process.error_stream = new StreamReader (new MonoSyncFileStream (process.stderr_rd, FileAccess.Read, true, 8192), stderrEncoding);
}
process.StartExitCallbackIfNeeded ();