Add API for detecting broken pipe when write to stdout(or stderr) #30540
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.Console
needs-further-triage
Issue has been initially triaged, but needs deeper consideration or reconsideration
Milestone
currently, corefx's
System.Console.Out
implementation is ignoring broken pipe, just pretend to success.(due to #15587)This behavior is sometimes inconvenient when work together with some command like
head
command.if dotnet command output is very long, there is no easy way to stop program if command which follows after pipe stop (except using native API, but it is sometimes very difficult).
So, I want the API to detect whether stdout(and maybe stderr) is broken.
The text was updated successfully, but these errors were encountered: