[Mono-bugs] [Bug 431022] Process.StandardInput.Write error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 19 17:17:47 EST 2009


User thp069 at gmail.com added comment

Thomas Pitschel <thp069 at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |NEW
                 CC|                            |thp069 at gmail.com
      Info Provider|matt.mcaughan at gmail.com     |

--- Comment #4 from Thomas Pitschel <thp069 at gmail.com>  2009-02-19 15:17:45 MST ---
What seems to matter is whether the executed program actually reads the input.

Try for example

ProcessStartInfo psi = new ProcessStartInfo("cat", ""); // will produce "Hello"


ProcessStartInfo psi = new ProcessStartInfo("cat", "xx"); // will yield the

The equivalent behaviour can be observed at a linux command prompt:

$ echo "klh" | cat
$ echo "klh" | cat my_existing_file_containing_xx.txt
bash: echo: write error: Broken pipe

The question is just what would be optimal behaviour. For consistency one will
guess that the current behaviour is good.

Side note: Adding Thread.Sleep(5000) after Start() still produced the error (on
a Debian lenny 2008-12).

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list