2008-06-19 Dick Porter <dick@ximian.com>
authorDick Porter <dick@acm.org>
Thu, 19 Jun 2008 14:56:31 +0000 (14:56 -0000)
committerDick Porter <dick@acm.org>
Thu, 19 Jun 2008 14:56:31 +0000 (14:56 -0000)
* Process.cs: Match the buffer sizes of StreamWriter and
MonoSyncFileStream for redirected stdout and stderr.  Fixes bug
401225.

svn path=/trunk/mcs/; revision=106217

mcs/class/System/System.Diagnostics/ChangeLog
mcs/class/System/System.Diagnostics/Process.cs

index d9332e073b06567678a23328b0736d7e397efd61..526ea63a67c6422e58823a5bec02b9abea383865 100644 (file)
@@ -1,3 +1,9 @@
+2008-06-19  Dick Porter  <dick@ximian.com>
+
+       * Process.cs: Match the buffer sizes of StreamWriter and
+       MonoSyncFileStream for redirected stdout and stderr.  Fixes bug
+       401225.
+
 2008-05-02  Zoltan Varga  <vargaz@gmail.com>
 
        * TraceImpl.cs: Update the IndentLevel property of this class when Indent ()
index 07ed17f498eeea26807abc464fa7e9ef98c0c6ad..fa28855f54287309b02961670c6830946d8542d9 100644 (file)
@@ -1088,12 +1088,12 @@ namespace System.Diagnostics {
 
                        if (startInfo.RedirectStandardOutput == true) {
                                MonoIO.Close (stdout_wr, out error);
-                               process.output_stream = new StreamReader (new MonoSyncFileStream (process.stdout_rd, FileAccess.Read, true, 8192), stdoutEncoding);
+                               process.output_stream = new StreamReader (new MonoSyncFileStream (process.stdout_rd, FileAccess.Read, true, 8192), stdoutEncoding, true, 8192);
                        }
 
                        if (startInfo.RedirectStandardError == true) {
                                MonoIO.Close (stderr_wr, out error);
-                               process.error_stream = new StreamReader (new MonoSyncFileStream (process.stderr_rd, FileAccess.Read, true, 8192), stderrEncoding);
+                               process.error_stream = new StreamReader (new MonoSyncFileStream (process.stderr_rd, FileAccess.Read, true, 8192), stderrEncoding, true, 8192);
                        }
 
                        process.StartExitCallbackIfNeeded ();